try removing stdout pipe

This commit is contained in:
AAGaming
2025-07-01 15:08:03 -04:00
parent cf1b9d2884
commit 291a22d10f
@@ -147,13 +147,13 @@ async def service_active(service_name : str) -> bool:
async def service_restart(service_name : str, block : bool = True) -> bool:
await run(["systemctl", "daemon-reload"])
logger.info("Systemd reload done.")
cmd = ["systemctl", "restart", service_name]
if not block:
cmd.append("--no-block")
res, _, _ = await run(cmd, stdout=PIPE, stderr=STDOUT)
res, _, _ = await run(cmd)
return res.returncode == 0
async def service_stop(service_name : str) -> bool: