chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
3109169
)
service: calculate sysv startup priority only in start runlevels
author
Lennart Poettering
<lennart@poettering.net>
Fri, 3 Sep 2010 02:08:16 +0000
(
04:08
+0200)
committer
Lennart Poettering
<lennart@poettering.net>
Fri, 3 Sep 2010 02:08:16 +0000
(
04:08
+0200)
src/service.c
patch
|
blob
|
history
diff --git
a/src/service.c
b/src/service.c
index 6539a24102d086463dffdd4f762ec13bd83b97d1..efa52778a66f6342a4fa805704dd6012859a2fdb 100644
(file)
--- a/
src/service.c
+++ b/
src/service.c
@@
-2747,11
+2747,12
@@
static int service_enumerate(Manager *m) {
if (de->d_name[0] == 'S') {
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;
SERVICE(service)->sysv_enabled = true;
+ }
if ((r = set_ensure_allocated(&runlevel_services[i], trivial_hash_func, trivial_compare_func)) < 0)
goto finish;
if ((r = set_ensure_allocated(&runlevel_services[i], trivial_hash_func, trivial_compare_func)) < 0)
goto finish;