Browse Source

ntpd startup only if ntp.conf exists

OPENBSD_2_4
deraadt 26 years ago
parent
commit
41c7bbafad
1 changed files with 3 additions and 2 deletions
  1. +3
    -2
      src/etc/rc.securelevel

+ 3
- 2
src/etc/rc.securelevel View File

@ -1,4 +1,4 @@
# $OpenBSD: rc.securelevel,v 1.10 1998/09/18 23:52:01 deraadt Exp $
# $OpenBSD: rc.securelevel,v 1.11 1998/09/21 09:34:47 deraadt Exp $
# #
# site-specific startup actions, daemons, and other things which # site-specific startup actions, daemons, and other things which
# can be done BEFORE your system goes into securemode. For actions # can be done BEFORE your system goes into securemode. For actions
@ -17,7 +17,8 @@ echo -n 'starting pre-securelevel daemons:'
# Former ntpd versions was called xntpd, change the ntpd references below # Former ntpd versions was called xntpd, change the ntpd references below
# to xntpd if you run such a version. # to xntpd if you run such a version.
if [ X"${ntpd}" == X"YES" -x /usr/local/sbin/ntpd ]; then
if [ X"${ntpd}" == X"YES" -a -x /usr/local/sbin/ntpd \
-a -e /etc/ntp.conf ]; then
/usr/local/sbin/tickadj -Aq /usr/local/sbin/tickadj -Aq
echo -n ' ntpd'; /usr/local/sbin/ntpd echo -n ' ntpd'; /usr/local/sbin/ntpd
fi fi


Loading…
Cancel
Save