undo change
This commit is contained in:
parent
4ea3cd221d
commit
71e63da4e4
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue