mirror of
https://github.com/troglobit/finit.git
synced 2026-11-03 13:28:27 +00:00
service_stop(): Nothing to do if svc is already stopping or halted
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
1 parent
6ec4dce5f9
commit
7d444e07a5
1 file changed
+3
@@ -417,6 +417,9 @@ static int service_stop(svc_t *svc)
|
|||||||
if (!svc)
|
if (!svc)
|
||||||
return 1;
|
return 1;
|
||||||
|
|
||||||
|
if (svc->state <= SVC_STOPPING_STATE)
|
||||||
|
return 0;
|
||||||
|
|
||||||
#ifdef INETD_ENABLED
|
#ifdef INETD_ENABLED
|
||||||
if (svc_is_inetd(svc)) {
|
if (svc_is_inetd(svc)) {
|
||||||
int do_progress = runlevel != 1 && !svc_is_busy(svc);
|
int do_progress = runlevel != 1 && !svc_is_busy(svc);
|
||||||
|
|||||||
Reference in new issue
Block a user