summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2010-09-13 23:54:21 +0200
committerLennart Poettering <lennart@poettering.net>2010-09-13 23:54:21 +0200
commit32159d3a94c6ef00555546e1caef2eacad62310a (patch)
treeefbee1bffefe4284bd8c0c3f4886e396dd2be94e
parent4f7dcad328249b80580aed5de73bd754db19351c (diff)
service: add generic LSB provides handling for facilities
-rw-r--r--src/service.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/service.c b/src/service.c
index 2d7ab70c19..c15425705c 100644
--- a/src/service.c
+++ b/src/service.c
@@ -277,9 +277,11 @@ static int sysv_translate_facility(const char *name, char **_r) {
}
if (*name == '$')
- return 0;
+ r = unit_name_build(name+1, NULL, ".target");
+ else
+ r = sysv_translate_name(name);
- if (!(r = sysv_translate_name(name)))
+ if (!r)
return -ENOMEM;
finish: