diff options
author | Michael Hanson <mihanson@linhes.org> | 2011-10-08 00:48:25 (GMT) |
---|---|---|
committer | Michael Hanson <mihanson@linhes.org> | 2011-10-08 00:48:25 (GMT) |
commit | ee019be570e80f20f106a6b0b739be427c5f89bc (patch) | |
tree | 47c56548770be52fc9a600f28eb4935844820f5b /abs/core/zoneminder/run | |
parent | f37574bd879953f9c2c1ee1dc97577d804759895 (diff) | |
parent | 04949a18e6ea4a313d101911dcdc689d029ddcb1 (diff) | |
download | linhes_pkgbuild-ee019be570e80f20f106a6b0b739be427c5f89bc.zip linhes_pkgbuild-ee019be570e80f20f106a6b0b739be427c5f89bc.tar.gz linhes_pkgbuild-ee019be570e80f20f106a6b0b739be427c5f89bc.tar.bz2 |
Merge branch 'testing' of knoppmyth.net:linhes_pkgbuild into testing
Diffstat (limited to 'abs/core/zoneminder/run')
-rwxr-xr-x | abs/core/zoneminder/run | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/abs/core/zoneminder/run b/abs/core/zoneminder/run index e458bc8..ce61c24 100755 --- a/abs/core/zoneminder/run +++ b/abs/core/zoneminder/run @@ -2,5 +2,20 @@ export TERM=linux . /etc/rc.conf . /etc/rc.d/functions -stat_runit "Starting ZoneMinder" -exec /etc/rc.d/zm start + +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 |