diff --git a/src/service.c b/src/service.c index 4c6b6368..0a58f289 100644 --- a/src/service.c +++ b/src/service.c @@ -1162,6 +1162,9 @@ void service_monitor(pid_t lost, int status) svc->started = 0; } + /* Terminate any children in the same proess group, e.g. logit */ + kill(-svc->pid, SIGTERM); + /* No longer running, update books. */ svc->start_time = svc->pid = 0;