added services for systemd and upstart

This commit is contained in:
Andreas Moik
2016-08-24 13:47:55 +02:00
parent 644f66dae9
commit c6c4745280
3 changed files with 35 additions and 0 deletions
+13
View File
@@ -0,0 +1,13 @@
[Unit]
Description=PhantomJS headless browser with HighCharts
After=network.target
[Service]
ExecStart=/usr/bin/phantomjs /home/%i/highcharts/highcharts-convert.js -host 10.127.0.197 -port 3003
KillMode=process
Restart=on-failure on-abort
User=%i
Group=%i
[Install]
WantedBy=multi-user.target
+13
View File
@@ -0,0 +1,13 @@
[Unit]
Description=The unoconv listener running on User %I
After=network.target
[Service]
ExecStart=/usr/bin/unoconv -l
KillMode=process
Restart=on-failure on-abort
User=%i
Group=%i
[Install]
WantedBy=multi-user.target
+9
View File
@@ -0,0 +1,9 @@
description "unoconv listener"
start on runlevel [2345]
stop on runlevel [016]
respawn
expect daemon
setuid unoconv
exec unoconv -l &