diff options
author | Lennart Poettering <lennart@poettering.net> | 2011-03-08 18:41:23 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2011-03-08 18:41:23 +0100 |
commit | 85211309f0e14d7f804e1367e838291f39f6cec0 (patch) | |
tree | 44814b131f378615db706dd276e8c2520373dfd6 /src/service.c | |
parent | 21256a2b3be4f5fb12b68c47e570b865c5a631f8 (diff) |
service: prefix description with LSB only if script has LSB header, use 'SysV:' otherwise
Diffstat (limited to 'src/service.c')
-rw-r--r-- | src/service.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/service.c b/src/service.c index 017b546d8c..465e1a7a58 100644 --- a/src/service.c +++ b/src/service.c @@ -835,7 +835,7 @@ static int service_load_sysv_path(Service *s, const char *path) { if (description) { char *d; - if (!(d = strappend("LSB: ", description))) { + if (!(d = strappend(s->sysv_has_lsb ? "LSB: " : "SysV: ", description))) { r = -ENOMEM; goto finish; } |