Page 1 of 1
How to have system state 'running' on startup?
Posted: Sun Mar 22, 2009 5:08 pm
by p0g0ZoneM
Zoneminder starts up with the system state "stopped", and I have to 1) know that ZM or the machine has started|restarted, 2) log in to the console, and 3) click on the "ZoneMinder Console <Stopped> link and select <start> and <apply> to start it. This defeats any automatic ZM monitoring on boot or after a power failure.
How can I script or flag the system to startup 'running'?
A prior version didn't exhibit this behavior, but my slightly b0rked 1.24.1 install seems to also startup stopped.
Posted: Mon Mar 23, 2009 3:19 am
by Blazer
It should have installed an init script which will start ZM when your server boots up. See if you have an /etc/init.d/zm
Posted: Mon Mar 23, 2009 8:55 am
by p0g0ZoneM
Gee, I thought I posted this to the tips forum, not zm 1.24 (I've yet to get that to work).
From the wiki (
http://www.zoneminder.com/wiki/index.ph ... stallation): "The 'zm' script does not get installed automatically as it is not necessary for the operation of the ZoneMinder setup per se and is not necessarily likely to work correctly for distributions other than those from the RedHat or Fedora families."
On that advice, I did not install zm to init.d (these are debian systems), tho mayhaps I should. The zm script, when called with the start parameter, calls zmpkg.pl, and that appears to have logic for pulling the state from mysql tables. I now suspect that I should try to call zmpkg.pl on startup. I'll see if I can get that to happen & report back.
Posted: Mon Mar 23, 2009 10:49 am
by cordel
You should be able to find start scripts for debian in the wiki, I think there are several howtos that have scripts listed.