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.

26 lines
911 B

  1. # $OpenBSD: rc.securelevel,v 1.12 2000/03/29 17:34:56 mickey Exp $
  2. #
  3. # site-specific startup actions, daemons, and other things which
  4. # can be done BEFORE your system goes into securemode. For actions
  5. # which should be done AFTER your system has gone into securemode
  6. # please see /etc/rc.local
  7. # This is the desired security level
  8. # XXX
  9. # XXX it is not really acceptable to put this value in a configuration
  10. # XXX file, because locking it down requires immutability on about
  11. # XXX 5 files instead of 2 (the kernel and init)
  12. # XXX
  13. securelevel=1
  14. echo -n 'starting pre-securelevel daemons:'
  15. # Former ntpd versions was called xntpd, change the ntpd references below
  16. # to xntpd if you run such a version.
  17. if [ X"${ntpd}" == X"YES" -a -x /usr/local/sbin/ntpd \
  18. -a -e /etc/ntp.conf ]; then
  19. /usr/local/sbin/tickadj -Aq
  20. echo -n ' ntpd'; /usr/local/sbin/ntpd -p /var/run/ntpd.pid
  21. fi
  22. echo '.'