Annotation of src/etc/rc.local, Revision 1.25
1.25 ! angelos 1: # $OpenBSD: rc.local,v 1.24 1999/03/01 04:41:48 fgsch 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.1 deraadt 12:
1.23 deraadt 13: if [ X"${sshd}" == X"YES" -a -x /usr/local/sbin/sshd ]; then
1.14 deraadt 14: echo -n ' sshd'; /usr/local/sbin/sshd
1.22 deraadt 15: #echo -n ' sshd2022'; /usr/local/sbin/sshd -p 2022
1.14 deraadt 16: fi
1.12 millert 17:
1.18 dima 18: if [ -x /usr/local/sbin/cfsd ]; then
1.19 dima 19: if ps auxc | grep -q '^ *root .* mountd$'; then
1.24 fgsch 20: echo -n ' cfsd'; /usr/local/sbin/cfsd >/dev/null 2>&1
1.19 dima 21: mount -o port=3049,nfsv2,intr localhost:/null /crypt
22: else
23: echo -n ' cfsd (failed, no mountd running)'
24: fi
1.17 mickey 25: fi
26:
1.18 dima 27: if [ -x /usr/local/sbin/snmpd ]; then
1.17 mickey 28: echo -n ' snmpd'; /usr/local/sbin/snmpd
1.16 angelos 29: fi
30:
31: # set pcvt screen saver time to 5min (see scon(1) for more options)
1.12 millert 32: #if test -x /usr/sbin/ispcvt -a -x /usr/sbin/scon && /usr/sbin/ispcvt; then
33: # echo -n ' scon'; /usr/sbin/scon -t 300
1.15 deraadt 34: #fi
1.1 deraadt 35:
36: echo '.'
1.25 ! angelos 37:
! 38: # Netatalk stuff
! 39: if [ -f /etc/netatalk/rc.conf ]; then
! 40: . /etc/netatalk/rc.atalk
! 41: fi
! 42: