i have had my home server change state to stopped. now im not sure if i did it and forgot etc, but can i cron a zm status start if stopped?
James
status check and start
-
- Posts: 5111
- Joined: Wed Jun 08, 2005 8:07 pm
- Location: Midlands UK
- zoneminder
- Site Admin
- Posts: 5215
- Joined: Wed Jul 09, 2003 2:07 pm
- Location: Bristol, UK
- Contact:
-
- Posts: 5111
- Joined: Wed Jun 08, 2005 8:07 pm
- Location: Midlands UK
This should do it, run from cron.
Code: Select all
$!/bin/bash
zmpkg.pl status |grep stopped && zmpkg.pl start
- zoneminder
- Site Admin
- Posts: 5215
- Joined: Wed Jul 09, 2003 2:07 pm
- Location: Bristol, UK
- Contact: