From 71e63da4e4788536196e368d10b268e4346f6706 Mon Sep 17 00:00:00 2001 From: Ana Hobden Date: Tue, 8 Nov 2022 14:11:45 -0800 Subject: [PATCH] undo change --- src/action/linux/start_systemd_unit.rs | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/src/action/linux/start_systemd_unit.rs b/src/action/linux/start_systemd_unit.rs index 5a21f77..7f36f57 100644 --- a/src/action/linux/start_systemd_unit.rs +++ b/src/action/linux/start_systemd_unit.rs @@ -90,13 +90,9 @@ impl Action for StartSystemdUnit { tracing::debug!("Stopping systemd unit"); // TODO(@Hoverbear): Handle proxy vars - execute_command( - Command::new("systemctl") - .arg("disable") - .arg(format!("{unit}")), - ) - .await - .map_err(|e| StartSystemdUnitError::Command(e).boxed())?; + execute_command(Command::new("systemctl").arg("stop").arg(format!("{unit}"))) + .await + .map_err(|e| StartSystemdUnitError::Command(e).boxed())?; tracing::trace!("Stopped systemd unit"); *action_state = ActionState::Completed;