mirror of
https://github.com/troglobit/finit.git
synced 2026-10-29 12:40:44 +00:00
Refactor fallback shell handling, run as regular service
This patch re-enables the fallback shell handling after the big TTY
refactor. We do this by allowing the fallback shell to run as a
regular service.
Note: this also adds the "hidden" support for 'notty' option for
tty configurations stanzas. This is just to pick up from
where the kernel left us, reusing stdin + stdout.
Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
1 parent
85a212ef93
commit
c0368d2b16
6 files changed
+52
-37
No files matched your search
@@ -737,6 +737,10 @@ int conf_reload(void)
|
||||
|
||||
globfree(&gl);
|
||||
|
||||
/* Verify config, do we have at least one TTY available? */
|
||||
if (tty_fallback(FINIT_CONF))
|
||||
logit(LOG_WARNING, "warning, no getty enabled on local TTYs.");
|
||||
|
||||
/* Mark any reverse deps as chenaged. */
|
||||
service_update_rdeps();
|
||||
|
||||
|
||||
Reference in new issue
Block a user