mirror of
https://github.com/troglobit/finit.git
synced 2026-11-18 19:30:56 +00:00
Support for overriding built-in default FINIT_RCSD in finit.conf
This commit adds support for the "runparts <DIR>" directive to finit.conf. Enabling the user to override the built-in default, which by default is /etc/finit.d. Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
1 parent
40c7a44d4f
commit
785c21d27b
3 files changed
+12
-2
No files matched your search
@@ -122,6 +122,11 @@ void parse_finit_conf(char *file)
|
||||
network = build_cmd(NULL, x, CMD_SIZE);
|
||||
continue;
|
||||
}
|
||||
if (MATCH_CMD(line, "runparts ", x)) {
|
||||
if (rcsd) free(rcsd);
|
||||
hostname = build_cmd(NULL, x, CMD_SIZE);
|
||||
continue;
|
||||
}
|
||||
if (MATCH_CMD(line, "startx ", x)) {
|
||||
svc_register(x, username);
|
||||
continue;
|
||||
|
||||
Reference in new issue
Block a user