aboutsummaryrefslogtreecommitdiffstats
path: root/testing/domoticz/domoticz.initd
blob: 07e852b35ea5532eabb4e2848eb2ea4b4db66660 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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"
}