mirror of
https://github.com/troglobit/finit.git
synced 2026-10-04 14:54:14 +07:00
fixup! inetd: only restart inetd services when neccessary
Signed-off-by: Jonas Johansson <jonasj76@gmail.com>
This commit is contained in:
@@ -1114,9 +1114,11 @@ restart:
|
||||
break;
|
||||
service_restart(svc);
|
||||
} else {
|
||||
#ifdef INETD_ENABLED
|
||||
if (svc_is_inetd(svc))
|
||||
inetd_stop_children(&svc->inetd, 1);
|
||||
else
|
||||
#endif
|
||||
service_stop(svc);
|
||||
}
|
||||
svc_mark_clean(svc);
|
||||
|
||||
Reference in New Issue
Block a user