Reload configuration & bugfixes

This commit is contained in:
2016-03-23 17:52:00 +01:00
parent 830cd86551
commit 5b11bc2a62
18 changed files with 326 additions and 164 deletions
+15
View File
@@ -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