Browse Source

add toggle for ntpd

OPENBSD_2_4
deraadt 26 years ago
parent
commit
f9dd07642d
2 changed files with 7 additions and 6 deletions
  1. +2
    -1
      src/etc/rc.conf
  2. +5
    -5
      src/etc/rc.securelevel

+ 2
- 1
src/etc/rc.conf View File

@ -1,6 +1,6 @@
#!/bin/sh - #!/bin/sh -
# #
# $OpenBSD: rc.conf,v 1.30 1998/09/17 03:46:34 pattonme Exp $
# $OpenBSD: rc.conf,v 1.31 1998/09/18 23:52:01 deraadt Exp $
# set these to "NO" to turn them off. otherwise, they're used as flags # set these to "NO" to turn them off. otherwise, they're used as flags
routed_flags=NO # for 'normal' use: routed_flags="-q" routed_flags=NO # for 'normal' use: routed_flags="-q"
@ -37,6 +37,7 @@ inetd=YES # almost always needed
lpd=NO # printing daemons lpd=NO # printing daemons
check_quotas=YES # NO may be desireable in some YP environments check_quotas=YES # NO may be desireable in some YP environments
sshd=YES # run sshd if it exists sshd=YES # run sshd if it exists
ntpd=YES # run ntpd if it exists
# miscellaneous other flags # miscellaneous other flags
# only used if the appropriate server is marked YES above # only used if the appropriate server is marked YES above


+ 5
- 5
src/etc/rc.securelevel View File

@ -1,4 +1,4 @@
# $OpenBSD: rc.securelevel,v 1.9 1998/03/25 23:08:12 deraadt Exp $
# $OpenBSD: rc.securelevel,v 1.10 1998/09/18 23:52:01 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,9 +17,9 @@ 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 /usr/local/sbin/ntpd ]; then
# /usr/local/sbin/tickadj -Aq
# echo -n ' ntpd'; /usr/local/sbin/ntpd
#fi
if [ X"${ntpd}" == X"YES" -x /usr/local/sbin/ntpd ]; then
/usr/local/sbin/tickadj -Aq
echo -n ' ntpd'; /usr/local/sbin/ntpd
fi
echo '.' echo '.'

Loading…
Cancel
Save