|
|
@@ -83,7 +83,8 @@ def setup_systemd_watchdog():
|
|
|
while True:
|
|
|
try:
|
|
|
subprocess.run(['systemd-notify', 'WATCHDOG=1'],
|
|
|
- check=False, capture_output=True, timeout=5)
|
|
|
+ check=False, stdout=subprocess.DEVNULL,
|
|
|
+ stderr=subprocess.DEVNULL, timeout=5)
|
|
|
time.sleep(interval)
|
|
|
except Exception as e:
|
|
|
logger.warning(f"Failed to send watchdog notification: {e}")
|
|
|
@@ -554,7 +555,8 @@ def main():
|
|
|
# Notify systemd that we're ready
|
|
|
try:
|
|
|
subprocess.run(['systemd-notify', 'READY=1'],
|
|
|
- check=False, capture_output=True, timeout=5)
|
|
|
+ check=False, stdout=subprocess.DEVNULL,
|
|
|
+ stderr=subprocess.DEVNULL, timeout=5)
|
|
|
logger.info("Sent READY=1 to systemd")
|
|
|
except Exception as e:
|
|
|
logger.warning(f"Failed to notify systemd ready: {e}")
|