diff options
Diffstat (limited to 'community/domoticz/domoticz.initd')
-rw-r--r-- | community/domoticz/domoticz.initd | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/community/domoticz/domoticz.initd b/community/domoticz/domoticz.initd new file mode 100644 index 0000000000..139e3345fd --- /dev/null +++ b/community/domoticz/domoticz.initd @@ -0,0 +1,19 @@ +#!/sbin/openrc-run + +name=domoticz +command=/usr/bin/$name +command_args="-daemon -userdata $userdata -approot $approot -pidfile $pidfile $daemon_args" +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" +} + |