mirror of
https://bitbucket.org/anguist/ntpa
synced 2026-09-24 09:51:55 +00:00
Reload configuration & bugfixes
This commit is contained in:
+15
@@ -24,6 +24,9 @@ rcvar=${name}_enable
|
||||
|
||||
start_cmd="ntpa_start"
|
||||
stop_cmd="ntpa_stop"
|
||||
reload_cmd="ntpa_reload"
|
||||
|
||||
extra_commands="reload"
|
||||
|
||||
load_rc_config ${name}
|
||||
|
||||
@@ -42,6 +45,18 @@ ntpa_start()
|
||||
fi
|
||||
}
|
||||
|
||||
ntpa_reload()
|
||||
{
|
||||
if [ ! -f ${pidfile} ]; then
|
||||
_run_rc_notrunning
|
||||
return 1
|
||||
else
|
||||
echo "Reloading ${name}."
|
||||
rc_pid=`cat ${pidfile}`
|
||||
kill -USR1 $rc_pid
|
||||
fi
|
||||
}
|
||||
|
||||
ntpa_stop()
|
||||
{
|
||||
if [ ! -f ${pidfile} ]; then
|
||||
|
||||
Reference in New Issue
Block a user