summaryrefslogtreecommitdiff
path: root/backend/helpers.py
diff options
context:
space:
mode:
Diffstat (limited to 'backend/helpers.py')
-rw-r--r--backend/helpers.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/backend/helpers.py b/backend/helpers.py
index 5e26f163..b3c8a51e 100644
--- a/backend/helpers.py
+++ b/backend/helpers.py
@@ -75,9 +75,9 @@ async def is_systemd_unit_active(unit_name: str) -> bool:
async def stop_systemd_unit(unit_name: str) -> subprocess.CompletedProcess:
cmd = ["systemctl", "stop", unit_name]
- return subprocess.run(cmd, stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL)
+ return subprocess.run(cmd, stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
async def start_systemd_unit(unit_name: str) -> subprocess.CompletedProcess:
cmd = ["systemctl", "start", unit_name]
- return subprocess.run(cmd, stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL)
+ return subprocess.run(cmd, stdout=subprocess.PIPE, stderr=subprocess.STDOUT)