From 32159d3a94c6ef00555546e1caef2eacad62310a Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Mon, 13 Sep 2010 23:54:21 +0200 Subject: [PATCH] service: add generic LSB provides handling for facilities --- src/service.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/service.c b/src/service.c index 2d7ab70c..c1542570 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: -- 2.39.5