X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=service.c;h=0a70bb0a7c518168c6d7d01375b0930c10fe34e9;hp=86406e8041e5678c52140e82d376a1850da44728;hb=ba8c0bef6bbb3f8cb92e0bf381fbe5a84584506f;hpb=6f5e3f352778090be1e87cda0b1ada7fdaacc334 diff --git a/service.c b/service.c index 86406e804..0a70bb0a7 100644 --- a/service.c +++ b/service.c @@ -624,7 +624,7 @@ static int service_load_sysv_path(Service *s, const char *path) { s->valid_no_process = true; /* Don't timeout special services during boot (like fsck) */ - if (!chars_intersect("12345", s->sysv_runlevels)) + if (s->sysv_runlevels && !chars_intersect("12345", s->sysv_runlevels)) s->timeout_usec = -1; u->meta.load_state = UNIT_LOADED;