service: only kill the main daemon for legacy sysv services, so that we don't kill sshd sessions

This commit is contained in:
Lennart Poettering 2010-04-24 02:31:42 +02:00
parent e93bc5a61f
commit b29a8e58fa

View File

@ -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))