diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1998-09-21 09:34:48 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1998-09-21 09:34:48 +0000 |
commit | 04a6ce822fa07074c76c72c3753260a1174be1fb (patch) | |
tree | bce6d90569e22c85a62e0c7755ebbb3b073988d9 /etc/rc.securelevel | |
parent | e1de8d6ec36ca67ce7af03f00fc688c8ba480c93 (diff) |
ntpd startup only if ntp.conf exists
Diffstat (limited to 'etc/rc.securelevel')
-rw-r--r-- | etc/rc.securelevel | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/etc/rc.securelevel b/etc/rc.securelevel index 9e835ea7996..1881acfa3e7 100644 --- a/etc/rc.securelevel +++ b/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 |