From: Lennart Poettering Date: Fri, 3 Sep 2010 02:08:16 +0000 (+0200) Subject: service: calculate sysv startup priority only in start runlevels X-Git-Tag: v9~2 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f73d93a4d9403d44bf3661bf383ac1385e5b5eb6;p=systemd service: calculate sysv startup priority only in start runlevels --- diff --git a/src/service.c b/src/service.c index 6539a241..efa52778 100644 --- a/src/service.c +++ b/src/service.c @@ -2747,11 +2747,12 @@ static int service_enumerate(Manager *m) { if (de->d_name[0] == 'S') { - SERVICE(service)->sysv_start_priority = - MAX(a*10 + b, SERVICE(service)->sysv_start_priority); + if (rcnd_table[i].type == RUNLEVEL_UP || rcnd_table[i].type == RUNLEVEL_SYSINIT) { + SERVICE(service)->sysv_start_priority = + MAX(a*10 + b, SERVICE(service)->sysv_start_priority); - if (rcnd_table[i].type == RUNLEVEL_UP || rcnd_table[i].type == RUNLEVEL_SYSINIT) SERVICE(service)->sysv_enabled = true; + } if ((r = set_ensure_allocated(&runlevel_services[i], trivial_hash_func, trivial_compare_func)) < 0) goto finish;