From 2c41d962db7a5be56a327c80780d6174b310f555 Mon Sep 17 00:00:00 2001 From: Benedikt Ziemons Date: Wed, 15 Sep 2021 23:06:15 +0200 Subject: [PATCH] Use stdout and stderr for all commands --- main.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/main.py b/main.py index 8fdaee5..c602931 100644 --- a/main.py +++ b/main.py @@ -9,12 +9,13 @@ from queue import SimpleQueue from signal import signal, SIGHUP, SIGINT, SIGTERM, setitimer, SIGALRM, ITIMER_REAL, SIGUSR1, SIGUSR2, strsignal import click -import sh +import sh as shex # noinspection PyUnresolvedReferences from sh import podman SERVICES_BASE_PATH = "/docker/services/" +sh = shex(_out=sys.stdout, _err=sys.stderr) sdnotify = sh.Command("systemd-notify")