1# $MirSecuCron$ 2# $MirOS: src/etc/rc.local,v 1.10 2009/07/18 14:09:06 tg Exp $ 3# $OpenBSD: rc.local,v 1.38 2005/03/29 21:41:59 uwe Exp $ 4 5# site-specific startup actions, daemons, and other things which 6# can be done AFTER your system goes into securemode. For actions 7# which should be done BEFORE your system has gone into securemode 8# please see /etc/rc.securelevel 9 10# site-specific startup actions, daemons which can be run 11# Add your local startup actions to this file 12 13echo -n 'starting local daemons:' 14 15if [[ -x /usr/mpkg/sbin/cfsd ]]; then 16 if ps auxc | grep -q '^ *root .* mountd$'; then 17 echo -n ' cfsd'; /usr/mpkg/sbin/cfsd >/dev/null 2>&1 18 mount -o port=3049,nfsv2,intr localhost:/null /crypt 19 else 20 echo -n ' cfsd (failed, no mountd running)' 21 fi 22fi 23 24#if [ -x /usr/mpkg/sbin/snmpd ]; then 25# echo -n ' snmpd'; /usr/mpkg/sbin/snmpd 26#fi 27 28if [[ -x /usr/mpkg/bin/svscanboot ]]; then 29 echo -n ' daemontools' 30 mksh -T- /usr/mpkg/bin/svscanboot 31fi 32 33echo '.' 34