aboutsummaryrefslogtreecommitdiffstats
path: root/community/domoticz/domoticz.initd
blob: 139e3345fd6f9ba8fb40f583c2a13bdb20a37352 (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="-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"
}