diff options
author | des <des@FreeBSD.org> | 2004-03-22 16:35:35 +0000 |
---|---|---|
committer | des <des@FreeBSD.org> | 2004-03-22 16:35:35 +0000 |
commit | 9d10e9dea5d8220f25d40ee3e084035d52bddaf9 (patch) | |
tree | bb4ff12c9e7030ff47bdba2d9bd8d0cdbcca1ef9 | |
parent | aaf338640edc5b97817ed043864912e3193b5c72 (diff) | |
download | FreeBSD-src-9d10e9dea5d8220f25d40ee3e084035d52bddaf9.zip FreeBSD-src-9d10e9dea5d8220f25d40ee3e084035d52bddaf9.tar.gz |
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.
-rwxr-xr-x | etc/rc.d/ntpdate | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/etc/rc.d/ntpdate b/etc/rc.d/ntpdate index 8633f2e..b2f4055 100755 --- a/etc/rc.d/ntpdate +++ b/etc/rc.d/ntpdate @@ -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 } |