mirror of
https://gitlab.steamos.cloud/holo/steamos-manager.git
synced 2025-07-09 16:10:34 -04:00
systemd: Add static unit file state
This commit is contained in:
parent
7adb60d491
commit
e38ac57891
1 changed files with 2 additions and 0 deletions
|
@ -66,6 +66,7 @@ pub enum EnableState {
|
|||
Disbled,
|
||||
Enabled,
|
||||
Masked,
|
||||
Static,
|
||||
}
|
||||
|
||||
pub struct SystemdUnit<'dbus> {
|
||||
|
@ -151,6 +152,7 @@ impl<'dbus> SystemdUnit<'dbus> {
|
|||
"enabled" => EnableState::Enabled,
|
||||
"disabled" => EnableState::Disbled,
|
||||
"masked" => EnableState::Masked,
|
||||
"static" => EnableState::Static,
|
||||
state => bail!("Unknown state {state}"),
|
||||
})
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue