mirror of
https://github.com/troglobit/finit.git
synced 2026-11-12 16:51:25 +00:00
initctl: Create 'enabled' services directory if it doesn't exist
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
1 parent
6a1082a947
commit
85261c9acd
1 file changed
+2
@@ -140,6 +140,8 @@ int serv_enable(char *arg)
|
|||||||
}
|
}
|
||||||
|
|
||||||
pushd(FINIT_RCSD);
|
pushd(FINIT_RCSD);
|
||||||
|
mkdir("enabled", 0755);
|
||||||
|
|
||||||
snprintf(path, sizeof(path), "%s/%s", available, arg);
|
snprintf(path, sizeof(path), "%s/%s", available, arg);
|
||||||
if (!fexist(path))
|
if (!fexist(path))
|
||||||
errx(1, "Cannot find %s", path);
|
errx(1, "Cannot find %s", path);
|
||||||
|
|||||||
Reference in new issue
Block a user