summaryrefslogtreecommitdiff
path: root/src/service.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2010-09-14 00:23:15 +0200
committerLennart Poettering <lennart@poettering.net>2010-09-14 00:23:15 +0200
commitf21781d57f7e012c1d576dfd8c30b411014c5a88 (patch)
treea74d1c0ba3ba82c9ad240d602c78a2ad9294bcc0 /src/service.c
parenta2ff477f6775dcff74e32f7d0221b1b11376e84c (diff)
service: fix check for non-LSB files
Diffstat (limited to 'src/service.c')
-rw-r--r--src/service.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/service.c b/src/service.c
index c15425705c..df0d400240 100644
--- a/src/service.c
+++ b/src/service.c
@@ -319,8 +319,8 @@ static int sysv_fix_order(Service *s) {
/* If both units have modern headers we don't care
* about the priorities */
- if ((!s->sysv_path || s->sysv_has_lsb) &&
- (!t->sysv_path || t->sysv_has_lsb))
+ if ((s->meta.fragment_path || s->sysv_has_lsb) &&
+ (t->meta.fragment_path || t->sysv_has_lsb))
continue;
special_s = s->sysv_runlevels && !chars_intersect(RUNLEVELS_UP, s->sysv_runlevels);
@@ -2280,7 +2280,7 @@ static void service_sigchld_event(Unit *u, pid_t pid, int code, int status) {
assert(s);
assert(pid >= 0);
- if (s->sysv_path)
+ if (!s->meta.fragment_path)
success = is_clean_exit_lsb(code, status);
else
success = is_clean_exit(code, status);