systemd: Add methods for enabling, disabling, masking, and unmasking

This commit is contained in:
Vicki Pfau 2024-04-24 18:06:31 -07:00
parent 96ebb6d75c
commit eb5fbc8e39
3 changed files with 82 additions and 4 deletions

View file

@ -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}"))