chiark / gitweb /
service: add generic LSB provides handling for facilities
authorLennart Poettering <lennart@poettering.net>
Mon, 13 Sep 2010 21:54:21 +0000 (23:54 +0200)
committerLennart Poettering <lennart@poettering.net>
Mon, 13 Sep 2010 21:54:21 +0000 (23:54 +0200)
src/service.c

index 2d7ab70..c154257 100644 (file)
@@ -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: