mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-07-20 00:12:15 +00:00
added services for systemd and upstart
This commit is contained in:
Executable
+13
@@ -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
|
||||
@@ -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
|
||||
Executable
+9
@@ -0,0 +1,9 @@
|
||||
description "unoconv listener"
|
||||
|
||||
start on runlevel [2345]
|
||||
stop on runlevel [016]
|
||||
respawn
|
||||
expect daemon
|
||||
setuid unoconv
|
||||
exec unoconv -l &
|
||||
|
||||
Reference in New Issue
Block a user