Browse Source

startup code for AFS

OPENBSD_2_4
art 26 years ago
parent
commit
f7a376a667
2 changed files with 14 additions and 2 deletions
  1. +9
    -1
      src/etc/rc
  2. +5
    -1
      src/etc/rc.conf

+ 9
- 1
src/etc/rc View File

@ -1,4 +1,4 @@
# $OpenBSD: rc,v 1.89 1998/09/19 02:31:51 todd Exp $
# $OpenBSD: rc,v 1.90 1998/10/12 03:02:57 art Exp $
# System startup script run by init on autoboot # System startup script run by init on autoboot
# or after single-user. # or after single-user.
@ -220,6 +220,13 @@ if [ -d /var/crash ]; then
savecore /var/crash savecore /var/crash
fi fi
if [ "X${afs}" = X"YES" -a -c ${afs_device} -a -d ${afs_mount_point} ]; then
echo -n 'mounting afs:'
mount -t afs ${afs_device} ${afs_mount_point}
/usr/libexec/afsd ${afsd_flags} -d ${afs_device}
echo ' done.'
fi
if [ "X${check_quotas}" = X"YES" ]; then if [ "X${check_quotas}" = X"YES" ]; then
echo -n 'checking quotas:' echo -n 'checking quotas:'
quotacheck -a quotacheck -a
@ -464,3 +471,4 @@ if [ "X${xdm_flags}" != X"NO" ]; then
fi fi
exit 0 exit 0

+ 5
- 1
src/etc/rc.conf View File

@ -1,6 +1,6 @@
#!/bin/sh - #!/bin/sh -
# #
# $OpenBSD: rc.conf,v 1.31 1998/09/18 23:52:01 deraadt Exp $
# $OpenBSD: rc.conf,v 1.32 1998/10/12 03:02:57 art Exp $
# set these to "NO" to turn them off. otherwise, they're used as flags # set these to "NO" to turn them off. otherwise, they're used as flags
routed_flags=NO # for 'normal' use: routed_flags="-q" routed_flags=NO # for 'normal' use: routed_flags="-q"
@ -38,6 +38,7 @@ lpd=NO # printing daemons
check_quotas=YES # NO may be desireable in some YP environments check_quotas=YES # NO may be desireable in some YP environments
sshd=YES # run sshd if it exists sshd=YES # run sshd if it exists
ntpd=YES # run ntpd if it exists ntpd=YES # run ntpd if it exists
afs=NO # mount and run afs
# miscellaneous other flags # miscellaneous other flags
# only used if the appropriate server is marked YES above # only used if the appropriate server is marked YES above
@ -54,3 +55,6 @@ ipmon_flags=-Ds # To disable logging, use ipmon_flags=NO
syslogd_flags= # add more flags, ie. -u -a /chroot/dev/log syslogd_flags= # add more flags, ie. -u -a /chroot/dev/log
named_user=named # Named should not run as root unless neccesary named_user=named # Named should not run as root unless neccesary
named_chroot=/var/named # Where to chroot named if not empty named_chroot=/var/named # Where to chroot named if not empty
afs_mount_point=/afs # Mountpoint for AFS
afs_device=/dev/xfs0 # Device used by afsd
afsd_flags=-z # Flags passed to afsd

Loading…
Cancel
Save