mirror of
https://github.com/troglobit/finit.git
synced 2026-10-19 11:09:35 +00:00
Move fork() of console to run_getty() and remove startx conf option
New function helpers.c:run_getty() refactored from main(). Used to start a default console getty. Removed startx finit.conf option, superseded by service statement, see examples/finit.conf for a working use case. Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
1 parent
dfa0fe6428
commit
75eb5cc043
6 files changed
+70
-73
No files matched your search
@@ -122,11 +122,6 @@ void parse_finit_conf(char *file)
|
||||
network = build_cmd(NULL, x, CMD_SIZE);
|
||||
continue;
|
||||
}
|
||||
if (MATCH_CMD(line, "startx ", x)) {
|
||||
if (startx) free(startx);
|
||||
startx = build_cmd(NULL, x, CMD_SIZE);
|
||||
continue;
|
||||
}
|
||||
if (MATCH_CMD(line, "service ", x)) {
|
||||
if (svc_register(x))
|
||||
_e("Failed, too many services to monitor.\n");
|
||||
|
||||
Reference in new issue
Block a user