summaryrefslogtreecommitdiff
path: root/user/mistserver/mistserver.initd
blob: 9f2765c400ad759fc76d8b79d601754badddf144 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#!/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 $?
}