summaryrefslogtreecommitdiffstats
path: root/abs/core/zoneminder/run
blob: ce61c245c67a8721d6f04140bf297339863364d6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/bash
export TERM=linux
. /etc/rc.conf
. /etc/rc.d/functions

while true ; do
    PID=`pidof -x zmdc.pl`
    if test -n "$PID" ; then
        sleep 60
	continue
    fi
    stat_runit "Starting ZoneMinder"
    /etc/rc.d/zm start
    if test $? -ne 0 ; then
        stat_fail
    else
        add_daemon zm
        stat_done
    fi
    sleep 30
done