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:
Dag-Erling Smørgrav 2004-03-22 16:35:35 +00:00
parent bdae44a844
commit 75213c3ed7

View File

@ -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
}