mirror of
https://github.com/troglobit/finit.git
synced 2026-11-06 15:51:03 +00:00
fixup! inetd: only restart inetd services when neccessary
Signed-off-by: Jonas Johansson <jonasj76@gmail.com>
This commit is contained in:
1 parent
f522a26125
commit
59f22c7d27
1 file changed
+2
@@ -1114,9 +1114,11 @@ restart:
|
|||||||
break;
|
break;
|
||||||
service_restart(svc);
|
service_restart(svc);
|
||||||
} else {
|
} else {
|
||||||
|
#ifdef INETD_ENABLED
|
||||||
if (svc_is_inetd(svc))
|
if (svc_is_inetd(svc))
|
||||||
inetd_stop_children(&svc->inetd, 1);
|
inetd_stop_children(&svc->inetd, 1);
|
||||||
else
|
else
|
||||||
|
#endif
|
||||||
service_stop(svc);
|
service_stop(svc);
|
||||||
}
|
}
|
||||||
svc_mark_clean(svc);
|
svc_mark_clean(svc);
|
||||||
|
|||||||
Reference in new issue
Block a user