init: Special case logd

Logd is a special case. Every other service effectively has an implicit
dependency on it for sending log messages to it and even init itself
depends on it for it's own log messages.
This commit is contained in:
bjorn3
2026-02-26 12:14:17 +01:00
parent e46bfb0005
commit fb051cd486
6 changed files with 22 additions and 20 deletions
-9
View File
@@ -45,9 +45,6 @@ pub enum Command {
// Service
Service(Service),
// Modify env
Stdio(String),
// Misc
Echo(String),
Nothing,
@@ -62,12 +59,6 @@ impl Command {
match cmd.as_str() {
"requires_weak" => Ok(Command::RequiresWeak(args.map(UnitId).collect::<Vec<_>>())),
"echo" => Ok(Command::Echo(args.collect::<Vec<_>>().join(" "))),
"stdio" => {
let Some(stdio) = args.next() else {
return Err("init: failed to set stdio: no argument".to_owned());
};
Ok(Command::Stdio(stdio))
}
"notify" => {
let process = Process::parse(args)?;