summaryrefslogblamecommitdiff
path: root/legacy/mistserver/mistserver.initd
blob: 9f2765c400ad759fc76d8b79d601754badddf144 (plain) (tree)




























                                                     
#!/sbin/openrc-run

description="MistServer multimedia streaming service"

: ${MIST_CONFIG:=/etc/mistserver.conf}
: ${MIST_LOG:=/var/log/mistserver.log}

depend() {
    need net
    use logger dns
    after sshd firewall 
}

start() {
    ebegin "Starting ${SVCNAME}"
    start-stop-daemon --start \
        --pidfile ${PIDFILE} \
        --exec MistController \
        -- -L ${MIST_LOG} -c ${MIST_CONFIG}
    eend $?
}

stop() {
    ebegin "Stopping ${SVCNAME}"
    start-stop-daemon --stop \
        --pidfile ${PIDFILE} \
        --exec MistController
    eend $?
}