From 8073f7cf2798b1518675a4950663ba08be78c6c4 Mon Sep 17 00:00:00 2001 From: Joachim Nilsson Date: Wed, 25 Nov 2015 10:14:18 +0100 Subject: [PATCH] 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 --- service.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/service.c b/service.c index d6ea8f5f..317937a2 100644 --- a/service.c +++ b/service.c @@ -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);