How to have system state 'running' on startup?

Forum for questions and support relating to the 1.24.x releases only.
Locked
p0g0ZoneM
Posts: 4
Joined: Mon Jul 30, 2007 6:43 pm

How to have system state 'running' on startup?

Post 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.
User avatar
Blazer
Posts: 234
Joined: Sun Jun 05, 2005 12:57 pm

Post 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
p0g0ZoneM
Posts: 4
Joined: Mon Jul 30, 2007 6:43 pm

Post 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.
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post 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.
Locked