Commit Graph

13 Commits

Author SHA1 Message Date
bjorn3 7ebeceb41d init: Allow init to register the scheme for a daemon
Unfortunately the scheme still has to be created by the daemon due to a
kernel bug, but once that is fixed, it would allow delayed spawning of
scheme daemons.
2026-02-18 22:40:09 +01:00
bjorn3 2d071a5b75 init: Separate init script parsing and executing
And remove the run command and eagerly apply env var subsitution before
execution.
2026-02-18 21:46:02 +01:00
bjorn3 0a17fef534 Introduce a shared config locator
And use it for init and pcid-spawner
2026-02-17 22:26:04 +01:00
bjorn3 6096fffe5d Let init handle daemonization
This way init can track the lifecycle of services in the future. It may
also help with parallel booting in the future.
2026-01-26 21:51:14 +01:00
Wildan M f24affc111 init: Add log and skip options 2026-01-23 02:25:07 +07:00
Jeremy Soller 5b675c3c9a init: print errors to stderr 2026-01-22 14:50:11 -07:00
bjorn3 858ff9cea9 init: Refactor the run function to reduce indentation 2025-12-05 21:02:46 +01:00
bjorn3 1d834c2393 init: Read config files all at once
This is simpler than streaming and likely a bit faster. Config files are
expected to be tiny.
2025-12-05 20:52:50 +01:00
bjorn3 c7adb019b5 Use file as default scheme from the start
This removes one piece of state that init has to manage for the
processes it spawns. This also allows getting rid of the concept of a
default scheme from relibc if we want.
2025-12-05 20:52:50 +01:00
bjorn3 66ca17f899 init: Add a nowait command that immediately daemonizes
This is useful for daemons on which no other daemon has a dependency as
those would no longer need to use redox_daemon to daemonize themself.
2025-11-30 10:45:55 +01:00
Jeremy Soller 9972903dc4 init: do not log successful command completion 2025-11-01 19:29:52 -06:00
bjorn3 72d04da8a9 init: Improve command spawning
The stdout and stderr of the spawned processes are not captured by init,
so attempting to write captured input is useless. Also show the exit
code in case the child process returned an non-zero exit code.
2025-03-31 20:11:32 +02:00
bjorn3 38c917a56b Add 'init/' from commit '0e7a0d3ab46817915180adbbb775c76d67fee31c'
git-subtree-dir: init
git-subtree-mainline: 57f2dca267
git-subtree-split: 0e7a0d3ab4
2025-02-18 21:31:28 +01:00