Annotation of src/etc/rc.local, Revision 1.30
1.30 ! matt 1: # $OpenBSD: rc.local,v 1.29 2000/06/24 19:37:33 jakob Exp $
1.4 deraadt 2:
1.10 deraadt 3: # site-specific startup actions, daemons, and other things which
4: # can be done AFTER your system goes into securemode. For actions
5: # which should be done BEFORE your system has gone into securemode
6: # please see /etc/rc.securelevel
7:
8: # site-specific startup actions, daemons which can be run
1.4 deraadt 9: # Add your local changes additions to this file
1.1 deraadt 10:
1.4 deraadt 11: echo -n 'starting local daemons:'
1.30 ! matt 12:
! 13: # run ntpdate prior to ntpd
! 14: if [ $securelevel -le 1 -a X"${ntpdate_flags}" != X"NO" \
! 15: -a -x /usr/local/sbin/ntpdate ]; then
! 16: echo -n ' ntpdate'
! 17: /usr/local/sbin/ntpdate -b ${ntpdate_flags} >/dev/null
! 18: fi
! 19:
! 20: if [ X"${ntpd}" == X"YES" -a -x /usr/local/sbin/ntpd \
! 21: -a -e /etc/ntp.conf ]; then
! 22: echo -n ' ntpd'; /usr/local/sbin/ntpd -p /var/run/ntpd.pid
! 23: fi
1.12 millert 24:
1.18 dima 25: if [ -x /usr/local/sbin/cfsd ]; then
1.19 dima 26: if ps auxc | grep -q '^ *root .* mountd$'; then
1.24 fgsch 27: echo -n ' cfsd'; /usr/local/sbin/cfsd >/dev/null 2>&1
1.19 dima 28: mount -o port=3049,nfsv2,intr localhost:/null /crypt
29: else
30: echo -n ' cfsd (failed, no mountd running)'
31: fi
1.17 mickey 32: fi
33:
1.29 jakob 34: #if [ -x /usr/local/sbin/snmpd ]; then
35: # echo -n ' snmpd'; /usr/local/sbin/snmpd
36: #fi
1.16 angelos 37:
38: # set pcvt screen saver time to 5min (see scon(1) for more options)
1.28 deraadt 39: #if [ -x /usr/sbin/ispcvt -a -x /usr/sbin/scon ] && /usr/sbin/ispcvt; then
1.12 millert 40: # echo -n ' scon'; /usr/sbin/scon -t 300
1.15 deraadt 41: #fi
1.1 deraadt 42:
43: echo '.'
1.25 angelos 44:
45: # Netatalk stuff
1.26 angelos 46: if [ -f /etc/netatalk/rc.atalk ]; then
1.25 angelos 47: . /etc/netatalk/rc.atalk
48: fi
49: