Revert semantic change in 'initctl restart' introduced in 924bf04

This patch reverts the change in behavior introduced in Finit v2.2,
commit 924bf041, where `initctl restart JOB` changed from 'stop + start'
to `SIGHUP` for services that support `SIGHUP`.

Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
Joachim Nilsson committed 2015-11-25 10:14:18 +01:00
1 parent e303e1f833
commit 8073f7cf27
1 file changed
-2
-2
View File
@@ -353,8 +353,6 @@ int service_stop(svc_t *svc, int state)
_d("Service %s state %d, new state %d, sighup %d", svc->cmd, svc->state, state, svc->sighup);
if (state == SVC_RELOAD_STATE && svc->sighup)
goto exit;
if (state == SVC_RESTART_STATE && svc->sighup)
return service_reload(svc);
if (runlevel != 1 && verbose)
print_desc("Stopping ", svc->desc);