From: Lennart Poettering Date: Sat, 24 Apr 2010 00:31:42 +0000 (+0200) Subject: service: only kill the main daemon for legacy sysv services, so that we don't kill... X-Git-Tag: 0.git+20100605+dfd8ee-1~55 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b29a8e58fa7c30dfcc4e4b1ccf9f409dc2935f8a;p=systemd service: only kill the main daemon for legacy sysv services, so that we don't kill sshd sessions --- diff --git a/service.c b/service.c index 83a11e94..298cc27e 100644 --- a/service.c +++ b/service.c @@ -661,6 +661,7 @@ static int service_load_sysv_path(Service *s, const char *path) { /* Special setting for all SysV services */ s->valid_no_process = true; + s->kill_mode = KILL_PROCESS_GROUP; /* Don't timeout special services during boot (like fsck) */ if (s->sysv_runlevels && !chars_intersect("12345", s->sysv_runlevels))