Set start_cmd and stop_cmd correctly so the code that extracts the names
of the ntp servers from ntp.conf is actually used. Remove pidfile since ntpdate is not a daemon.
This commit is contained in:
parent
bdae44a844
commit
75213c3ed7
@ -12,9 +12,8 @@
|
||||
|
||||
name="ntpdate"
|
||||
rcvar=`set_rcvar`
|
||||
command="/usr/sbin/${name}"
|
||||
command_args=">/dev/null 2>&1"
|
||||
pidfile="/var/run/${name}.pid"
|
||||
stop_cmd=":"
|
||||
start_cmd="ntpdate_start"
|
||||
|
||||
ntpdate_start()
|
||||
{
|
||||
@ -26,7 +25,7 @@ ntpdate_start()
|
||||
fi
|
||||
if [ -n "$ntpdate_hosts" ]; then
|
||||
echo "Setting date via ntp."
|
||||
ntpdate $rc_flags $ntpdate_hosts
|
||||
${ntpdate_command:-ntpdate} $rc_flags $ntpdate_hosts
|
||||
fi
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user