Handle SIGHUP requst from service when switching runlevel

Signed-off-by: Jonas Johansson <jonasj76@gmail.com>
This commit is contained in:
Jonas Johansson authored and Joachim Nilsson committed 2014-02-24 23:33:38 +01:00
1 parent d7598ca672
commit cb874d7a94
1 file changed
+2
+2
View File
@@ -188,6 +188,8 @@ void svc_runlevel(int newlevel)
if (svc->pid) {
if (run == SVC_STOP)
svc_stop(svc);
else if (run == SVC_RELOAD)
svc_reload(svc);
} else {
if (run == SVC_START)
svc_start(svc);