From cc0ac3c16a6e0a77882e9dd81ad2ebb533ae900a Mon Sep 17 00:00:00 2001 From: Kay0u Date: Thu, 10 Dec 2020 13:46:39 +0100 Subject: [PATCH] Fix systemd stdout/stderr --- conf/systemd.service | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/conf/systemd.service b/conf/systemd.service index 76cdf64..e575285 100644 --- a/conf/systemd.service +++ b/conf/systemd.service @@ -7,7 +7,9 @@ Type=simple User=__APP__ Group=__APP__ WorkingDirectory=__FINALPATH__/ -ExecStart=__FINALPATH__/script >> /var/log/__APP__/__APP__.log 2>&1 +ExecStart=__FINALPATH__/script +StandardOutput=append:/var/log/__APP__/__APP__.log +StandardError=inherit [Install] WantedBy=multi-user.target