mirror of
https://github.com/troglobit/finit.git
synced 2026-10-14 10:19:36 +00:00
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:
1 parent
e303e1f833
commit
8073f7cf27
1 file changed
-2
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user