diff options
author | Lennart Poettering <lennart@poettering.net> | 2010-09-03 04:08:16 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2010-09-03 04:08:16 +0200 |
commit | f73d93a4d9403d44bf3661bf383ac1385e5b5eb6 (patch) | |
tree | ec8bd1c670dfb2afaaf466e707fa8e1789fd1fb8 /src | |
parent | 31091693ec04b0617c0ea99b2281bb790fa51ad6 (diff) |
service: calculate sysv startup priority only in start runlevels
Diffstat (limited to 'src')
-rw-r--r-- | src/service.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/service.c b/src/service.c index 6539a24102..efa52778a6 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; |