From 0da58ac058d520d84dfb9278d78277248cac4adc Mon Sep 17 00:00:00 2001 From: Daniel Dayley Date: Tue, 20 Jul 2021 16:47:25 -0600 Subject: [PATCH] Added optional logging lines --- com.cronocide.python-tool.plist | 4 ++++ python-tool.service | 3 +++ 2 files changed, 7 insertions(+) diff --git a/com.cronocide.python-tool.plist b/com.cronocide.python-tool.plist index 46aaa90..97231d4 100644 --- a/com.cronocide.python-tool.plist +++ b/com.cronocide.python-tool.plist @@ -12,5 +12,9 @@ KeepAlive + StandardOutPath + /var/log/python-tool.log + StandardErrorPath + /var/log/python-tool.log diff --git a/python-tool.service b/python-tool.service index e8095ee..f05a450 100644 --- a/python-tool.service +++ b/python-tool.service @@ -7,6 +7,9 @@ Restart=always Type=simple WorkingDirectory=/etc/python-tool ExecStart=/etc/python-tool/bin/python-tool +StandardOutput=syslog +StandardError=syslog +SyslogIdentifier=python-tool [Install] WantedBy=multi-user.target