inetd: only restart inetd services when neccessary

Do not restart a inetd service if the listening interface is changed.
Only bring down established connection which are no longer allowed,
i.e. do not touch already allowed established connections.

Signed-off-by: Jonas Johansson <jonasj76@gmail.com>
This commit is contained in:
Jonas Johansson committed 2018-05-03 08:57:19 +02:00
1 parent efb1d40ffd
commit f522a26125
4 files changed
+30 -13

No files matched your search

+4 -1
View File
@@ -1114,7 +1114,10 @@ restart:
break;
service_restart(svc);
} else {
service_stop(svc);
if (svc_is_inetd(svc))
inetd_stop_children(&svc->inetd, 1);
else
service_stop(svc);
}
svc_mark_clean(svc);
}