undo change

This commit is contained in:
Ana Hobden 2022-11-08 14:11:45 -08:00
parent 4ea3cd221d
commit 71e63da4e4

View file

@ -90,13 +90,9 @@ impl Action for StartSystemdUnit {
tracing::debug!("Stopping systemd unit"); tracing::debug!("Stopping systemd unit");
// TODO(@Hoverbear): Handle proxy vars // TODO(@Hoverbear): Handle proxy vars
execute_command( execute_command(Command::new("systemctl").arg("stop").arg(format!("{unit}")))
Command::new("systemctl") .await
.arg("disable") .map_err(|e| StartSystemdUnitError::Command(e).boxed())?;
.arg(format!("{unit}")),
)
.await
.map_err(|e| StartSystemdUnitError::Command(e).boxed())?;
tracing::trace!("Stopped systemd unit"); tracing::trace!("Stopped systemd unit");
*action_state = ActionState::Completed; *action_state = ActionState::Completed;