mirror of
https://github.com/troglobit/finit.git
synced 2026-11-24 20:21:44 +00:00
Fix initctl touch of template services
Follow-up to 465bc17, which addressed unintended restart of siblings.
This patch fixes a problem where template instantiated services are not
properly reloaded/restarted when marked as "dirty" with `initctl touch`.
Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
1 file changed
+5
-1
+5
-1
@@ -1486,7 +1486,11 @@ int conf_changed(char *file)
|
|||||||
if (!file)
|
if (!file)
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
rp = realpath(file, NULL);
|
if (strchr(file, '@'))
|
||||||
|
rp = strdup(file);
|
||||||
|
else
|
||||||
|
rp = realpath(file, NULL);
|
||||||
|
|
||||||
if (!rp)
|
if (!rp)
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user