Browse Source

remove startup code for that other ntpd from ports and use the one

in base instead. theo ok & rush to go for beer
OPENBSD_3_6
henning 20 years ago
parent
commit
9449fe79c2
3 changed files with 4 additions and 34 deletions
  1. +2
    -3
      src/etc/rc.conf
  2. +1
    -17
      src/etc/rc.local
  3. +1
    -14
      src/etc/rc.securelevel

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

@ -1,6 +1,6 @@
#!/bin/sh -
#
# $OpenBSD: rc.conf,v 1.97 2004/06/04 04:26:41 grange Exp $
# $OpenBSD: rc.conf,v 1.98 2004/07/06 04:03:41 henning Exp $
# set these to "NO" to turn them off. otherwise, they're used as flags
routed_flags=NO # for normal use: "-q"
@ -14,7 +14,7 @@ sshd_flags="" # for normal use: ""
named_flags=NO # for normal use: ""
rdate_flags=NO # for normal use: [RFC868-host] or [-n RFC2030-host]
timed_flags=NO # for normal use: ""
ntpdate_flags=NO # for normal use: NTP server; run before ntpd starts
ntpd_flags=NO # for normal use: ""
isakmpd_flags=NO # for normal use: ""
mopd_flags=NO # for normal use: "-a"
apmd_flags=NO # for normal use: ""
@ -59,7 +59,6 @@ pf=NO # Packet filter / NAT
portmap=NO # Note: inetd(8) rpc services need portmap too
inetd=YES # almost always needed
check_quotas=YES # NO may be desirable in some YP environments
ntpd=YES # run ntpd if it exists
krb5_master_kdc=NO # KerberosV master KDC. Run 'info heimdal' for help.
krb5_slave_kdc=NO # KerberosV slave KDC.


+ 1
- 17
src/etc/rc.local View File

@ -1,4 +1,4 @@
# $OpenBSD: rc.local,v 1.35 2004/04/07 19:23:39 david Exp $
# $OpenBSD: rc.local,v 1.36 2004/07/06 04:03:41 henning Exp $
# site-specific startup actions, daemons, and other things which
# can be done AFTER your system goes into securemode. For actions
@ -10,22 +10,6 @@
echo -n 'starting local daemons:'
# run ntpdate prior to ntpd
if [ $securelevel -le 1 -a X"${ntpdate_flags}" != X"NO" \
-a -x /usr/local/sbin/ntpdate ]; then
echo -n ' ntpdate'
/usr/local/sbin/ntpdate -b ${ntpdate_flags} >/dev/null
fi
if [ X"${ntpd}" == X"YES" -a -x /usr/local/sbin/ntpd \
-a -e /etc/ntp.conf ]; then
ntpd_flags="-p /var/run/ntpd.pid"
if [ $securelevel -ge 1 ]; then
ntpd_flags="${ntpd_flags} -x"
fi
echo -n ' ntpd'; /usr/local/sbin/ntpd ${ntpd_flags}
fi
if [ -x /usr/local/sbin/cfsd ]; then
if ps auxc | grep -q '^ *root .* mountd$'; then
echo -n ' cfsd'; /usr/local/sbin/cfsd >/dev/null 2>&1


+ 1
- 14
src/etc/rc.securelevel View File

@ -1,4 +1,4 @@
# $OpenBSD: rc.securelevel,v 1.14 2000/07/13 16:26:13 millert Exp $
# $OpenBSD: rc.securelevel,v 1.15 2004/07/06 04:03:41 henning Exp $
#
# site-specific startup actions, daemons, and other things which
# can be done BEFORE your system goes into securemode. For actions
@ -14,17 +14,4 @@
securelevel=1
echo -n 'starting pre-securelevel daemons:'
# Securelevel > 1 does not allow the clock to be set backwards
if [ $securelevel -gt 1 -a X"${ntpdate_flags}" != X"NO" \
-a -x /usr/local/sbin/ntpdate ]; then
echo -n ' ntpdate'
/usr/local/sbin/ntpdate -b ${ntpdate_flags} >/dev/null
fi
if [ X"${ntpd}" == X"YES" -a -x /usr/local/sbin/tickadj \
-a -e /etc/ntp.conf ]; then
echo -n ' tickadj'; /usr/local/sbin/tickadj -Aq
fi
echo '.'

Loading…
Cancel
Save