Commit 49d8e518 authored by hark's avatar hark
Browse files

uncommited stuff

parent 557fbef3
......@@ -14,3 +14,4 @@ chown audiostream:www-data /var/log/stream-schedule/
[ -f /var/log/stream-schedule/scheduler.log ] && chmod 664 /var/log/stream-schedule/scheduler.log
[ -f /var/log/stream-schedule/scheduler.log ] && chown audiostream:www-data /var/log/stream-schedule/scheduler.log
exit 0
stream-schedule (0.01.0054) xenial; urgency=low
stream-schedule (0.01.0055) xenial; urgency=low
* fix systemd service again
-- Milan Chrobok <mc@radiopiloten.de> Thu, 27 Apr 2018 16:54:09 +0200
......
......@@ -67,7 +67,7 @@ if [ -d /var/log/stream-schedule/plot/ ]; then
chmod 0755 /var/log/stream-schedule/plot/
fi
chmod 0755 /bin/start-stream-schedule.sh
chmod 0755 /bin/prepare-stream-schedule.sh
[ -f /etc/stream-schedule/stream-schedule.conf ] && chgrp audiostream /etc/stream-schedule/stream-schedule.conf
[ -f /etc/init/stream-schedule.conf ] && chgrp audiostream /etc/init/stream-schedule.conf
......
......@@ -4,14 +4,15 @@ Description=audio stream schedule
After=network.target
[Service]
#Type=simple
Restart=always
RestartSec=1s
StartLimitInterval=0
User=audiostream
Group=audiostream
ExecStartPre=+/bin/prepare-stream-schedule.sh >>/var/log/stream-schedule/scheduler.log 2>&1
PermissionsStartOnly=true
ExecStartPre=/bin/prepare-stream-schedule.sh >>/var/log/stream-schedule/scheduler.log 2>&1
ExecStart=/usr/bin/scheduler.pl --daemon >>/var/log/stream-schedule/scheduler.log 2>&1
ExecReload=/bin/kill -HUP $(cat /var/run/stream-schedule/stream-schedule.pid) >>/var/log/stream-schedule/scheduler.log 2>&1
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment