aboutsummaryrefslogtreecommitdiffstats
path: root/testing/domoticz/domoticz.initd
diff options
context:
space:
mode:
authorCarlo Landmeter <clandmeter@gmail.com>2016-02-08 16:27:42 +0100
committerCarlo Landmeter <clandmeter@gmail.com>2016-02-08 16:27:48 +0100
commit8505d75d03edc3f4de416c444ceb96568dc9d900 (patch)
tree466a0e6eb592a26101262cbeb5e8b993a4a5d263 /testing/domoticz/domoticz.initd
parent531bfdfee26a5a8788672be476ffa7c13a289a38 (diff)
testing/domoticz: add init support
Diffstat (limited to 'testing/domoticz/domoticz.initd')
-rw-r--r--testing/domoticz/domoticz.initd19
1 files changed, 19 insertions, 0 deletions
diff --git a/testing/domoticz/domoticz.initd b/testing/domoticz/domoticz.initd
new file mode 100644
index 00000000000..07e852b35ea
--- /dev/null
+++ b/testing/domoticz/domoticz.initd
@@ -0,0 +1,19 @@
+#!/sbin/openrc-run
+
+name=domoticz
+command=/usr/bin/$name
+command_args="-dbase $dbase -userdata $userdata -wwwroot $wwwroot -pidfile $pidfile -syslog -daemon"
+command_background=YES
+start_stop_daemon_args="--user $user"
+
+depend() {
+ use logger dns
+ need net
+ after firewall
+}
+
+start_pre() {
+ checkpath --directory --owner "$user" \
+ --mode 0775 /var/run/"$name"
+}
+