mirror of
https://gitlab.steamos.cloud/holo/steamos-manager.git
synced 2025-07-13 01:41:59 -04:00
systemd: Add methods for enabling, disabling, masking, and unmasking
This commit is contained in:
parent
96ebb6d75c
commit
eb5fbc8e39
3 changed files with 82 additions and 4 deletions
|
@ -151,7 +151,7 @@ async fn restart_iwd(connection: Connection) -> Result<()> {
|
|||
.inspect_err(|message| error!("restart_iwd: reload systemd got an error: {message}"))?;
|
||||
|
||||
// worked, now restart iwd
|
||||
let unit = SystemdUnit::new(connection, "iwd_2eservice").await?;
|
||||
let unit = SystemdUnit::new(connection, "iwd.service").await?;
|
||||
unit.restart()
|
||||
.await
|
||||
.inspect_err(|message| error!("restart_iwd: restart unit got an error: {message}"))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue