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