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