#!/sbin/openrc-run

name="MMDVMHost"
description="MMDVMHost Digital Voice Modem Service"

command="/usr/local/bin/mmdvmhost/start-mmdvm.sh"
command_user="root"
pidfile="/run/mmdvmhost.pid"

supervisor="supervise-daemon"
respawn_delay=2
respawn_max=0   # 0 = unendlich oft neu starten

depend() {
    need net
    after firewall
}

start_pre() {
    checkpath --directory --mode 0755 /run
}
