From 41c7bbafad8fdc07dc9d1cd77b64bdd516af8d6c Mon Sep 17 00:00:00 2001 From: deraadt <> Date: Mon, 21 Sep 1998 09:34:47 +0000 Subject: [PATCH] ntpd startup only if ntp.conf exists --- src/etc/rc.securelevel | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/etc/rc.securelevel b/src/etc/rc.securelevel index 9e835ea7..1881acfa 100644 --- a/src/etc/rc.securelevel +++ b/src/etc/rc.securelevel @@ -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 # 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 # 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 echo -n ' ntpd'; /usr/local/sbin/ntpd fi