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:
@@ -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)?;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user