Source code pulled from OpenBSD for OpenNTPD. The place to contribute to this code is via the OpenBSD CVS tree.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

44 lines
1.2 KiB

27 years ago
  1. # $OpenBSD: rc.local,v 1.33 2001/06/05 23:01:55 naddy Exp $
  2. # site-specific startup actions, daemons, and other things which
  3. # can be done AFTER your system goes into securemode. For actions
  4. # which should be done BEFORE your system has gone into securemode
  5. # please see /etc/rc.securelevel
  6. # site-specific startup actions, daemons which can be run
  7. # Add your local changes additions to this file
  8. echo -n 'starting local daemons:'
  9. # run ntpdate prior to ntpd
  10. if [ $securelevel -le 1 -a X"${ntpdate_flags}" != X"NO" \
  11. -a -x /usr/local/sbin/ntpdate ]; then
  12. echo -n ' ntpdate'
  13. /usr/local/sbin/ntpdate -b ${ntpdate_flags} >/dev/null
  14. fi
  15. if [ X"${ntpd}" == X"YES" -a -x /usr/local/sbin/ntpd \
  16. -a -e /etc/ntp.conf ]; then
  17. echo -n ' ntpd'; /usr/local/sbin/ntpd -p /var/run/ntpd.pid
  18. fi
  19. if [ -x /usr/local/sbin/cfsd ]; then
  20. if ps auxc | grep -q '^ *root .* mountd$'; then
  21. echo -n ' cfsd'; /usr/local/sbin/cfsd >/dev/null 2>&1
  22. mount -o port=3049,nfsv2,intr localhost:/null /crypt
  23. else
  24. echo -n ' cfsd (failed, no mountd running)'
  25. fi
  26. fi
  27. #if [ -x /usr/local/sbin/snmpd ]; then
  28. # echo -n ' snmpd'; /usr/local/sbin/snmpd
  29. #fi
  30. echo '.'
  31. # Netatalk stuff
  32. #if [ -f /etc/netatalk/rc.atalk ]; then
  33. # . /etc/netatalk/rc.atalk
  34. #fi