ntpd start fix

This commit is contained in:
Jaroslav Kysela 2015-05-22 21:57:01 +02:00
parent 394cc25bf7
commit cc6e5c9d10
2 changed files with 7 additions and 5 deletions

View File

@ -30,6 +30,7 @@ renew|bound)
logger -p local0.notice "DHCP IPv4 changed, killing minisatip"
rm -f /tmp/satip-network
killall -9 minisatip 2> /dev/null
killall -9 ntpd 2> /dev/null
fi
ifconfig $interface $ip $BROADCAST $NETMASK
if test -n "$router" ; then

View File

@ -1,7 +1,8 @@
#!/bin/sh
test -r /etc/sysconfig/config && . /etc/sysconfig/config
test -z "$NTPD_OPTS" && NTPD_OPTS="-p 0.pool.ntp.org"
exec /usr/sbin/ntpd -I eth0 $NTPD_OPTS
while test ! -f /tmp/nontpd; do
NTPD_OPTS=""
test -r /etc/sysconfig/config && . /etc/sysconfig/config
test -z "$NTPD_OPTS" && NTPD_OPTS="-p 0.pool.ntp.org"
/usr/sbin/ntpd -n -I eth0 $NTPD_OPTS
done