#!/sbin/openrc-run

name=domoticz
command=/usr/bin/$name
command_args="-userdata $userdata -approot $approot $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"
}

