diff options
author | Carlo Landmeter <clandmeter@gmail.com> | 2016-02-08 16:27:42 +0100 |
---|---|---|
committer | Carlo Landmeter <clandmeter@gmail.com> | 2016-02-08 16:27:48 +0100 |
commit | 8505d75d03edc3f4de416c444ceb96568dc9d900 (patch) | |
tree | 466a0e6eb592a26101262cbeb5e8b993a4a5d263 /testing/domoticz/domoticz.initd | |
parent | 531bfdfee26a5a8788672be476ffa7c13a289a38 (diff) | |
download | aports-8505d75d03edc3f4de416c444ceb96568dc9d900.tar.bz2 aports-8505d75d03edc3f4de416c444ceb96568dc9d900.tar.xz |
testing/domoticz: add init support
Diffstat (limited to 'testing/domoticz/domoticz.initd')
-rw-r--r-- | testing/domoticz/domoticz.initd | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/testing/domoticz/domoticz.initd b/testing/domoticz/domoticz.initd new file mode 100644 index 0000000000..07e852b35e --- /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" +} + |