summaryrefslogtreecommitdiff
path: root/service.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2010-04-24 02:31:42 +0200
committerLennart Poettering <lennart@poettering.net>2010-04-24 02:31:42 +0200
commitb29a8e58fa7c30dfcc4e4b1ccf9f409dc2935f8a (patch)
tree34677d54d41f37e0f6a98b66aebdef504cfacd8e /service.c
parente93bc5a61f8589f01e779ab2b5ffc7c7ca072074 (diff)
service: only kill the main daemon for legacy sysv services, so that we don't kill sshd sessions
Diffstat (limited to 'service.c')
-rw-r--r--service.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/service.c b/service.c
index 83a11e94f9..298cc27edb 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))