From 489d62897f152c7d6ecc33ff035312be6ad4c583 Mon Sep 17 00:00:00 2001 From: Stefan Felkel <16918854+tirolerstefan@users.noreply.github.com> Date: Sun, 29 Aug 2021 19:12:06 +0200 Subject: [PATCH] created run/log directories, adapt permissions --- systemd/kaifareader.service | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/systemd/kaifareader.service b/systemd/kaifareader.service index 47c0b1b..ae3957a 100644 --- a/systemd/kaifareader.service +++ b/systemd/kaifareader.service @@ -3,6 +3,10 @@ Description=kaifareader After=syslog.target network.target ntp.service [Service] +ExecStartPre=/bin/mkdir -p /var/run/kaifareader +ExecStartPre=/bin/mkdir -p /var/log/kaifareader +ExecStartPre=/bin/chmod 777 /var/run/kaifareader +ExecStartPre=/bin/chmod 777 /var/log/kaifareader ExecStart=/usr/bin/python3 /usr/lib/kaifareader/kaifareader.py StandardOutput=null