summaryrefslogtreecommitdiff
path: root/service.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2010-04-07 15:35:01 +0200
committerLennart Poettering <lennart@poettering.net>2010-04-07 15:35:01 +0200
commit0571e0111d76cf96aa4069d9c7a6e24d97aa7e48 (patch)
tree02b645afb04187ae5bcea4026960da62342b345f /service.c
parentac8cfcf56c5d7b3eaeec64e94f6c4659e82a2b10 (diff)
build-sys: automatically detect SysV init dirs
Diffstat (limited to 'service.c')
-rw-r--r--service.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/service.c b/service.c
index 1ee0f05d3e..23f8592b9b 100644
--- a/service.c
+++ b/service.c
@@ -36,13 +36,13 @@
#define LINE_MAX 4096
static const char * const rcnd_table[] = {
- "../rc0.d", SPECIAL_RUNLEVEL0_TARGET,
- "../rc1.d", SPECIAL_RUNLEVEL1_TARGET,
- "../rc2.d", SPECIAL_RUNLEVEL2_TARGET,
- "../rc3.d", SPECIAL_RUNLEVEL3_TARGET,
- "../rc4.d", SPECIAL_RUNLEVEL4_TARGET,
- "../rc5.d", SPECIAL_RUNLEVEL5_TARGET,
- "../rc6.d", SPECIAL_RUNLEVEL6_TARGET
+ "/rc0.d", SPECIAL_RUNLEVEL0_TARGET,
+ "/rc1.d", SPECIAL_RUNLEVEL1_TARGET,
+ "/rc2.d", SPECIAL_RUNLEVEL2_TARGET,
+ "/rc3.d", SPECIAL_RUNLEVEL3_TARGET,
+ "/rc4.d", SPECIAL_RUNLEVEL4_TARGET,
+ "/rc5.d", SPECIAL_RUNLEVEL5_TARGET,
+ "/rc6.d", SPECIAL_RUNLEVEL6_TARGET
};
@@ -218,7 +218,7 @@ static int priority_from_rcd(Service *s, const char *init_script) {
char **p;
unsigned i;
- STRV_FOREACH(p, UNIT(s)->meta.manager->sysvinit_path)
+ STRV_FOREACH(p, UNIT(s)->meta.manager->sysrcnd_path)
for (i = 0; i < ELEMENTSOF(rcnd_table); i += 2) {
char *path;
DIR *d;