Startup Zoneminder State Always Stopped

Forum for questions and support relating to the 1.24.x releases only.
Locked
moorsey
Posts: 53
Joined: Sun Jan 03, 2010 8:56 am

Startup Zoneminder State Always Stopped

Post by moorsey »

Hey all,

Zoneminder system has been up and running nicely for a while now, just one question.

Whenever the system is rebooted, due to a powercut or scheduled maintenance etc, zoneminder is always "Stopped" when the system reboots. It would seem normal for it to be started when the system boots up.

Can this initial state be set somewhere? Or should it be starting and I just have a problem with my setup?

Cheers
uvstudios
Posts: 1
Joined: Sun Dec 26, 2010 1:00 am

Post by uvstudios »

When you reboot your system zoneminder is not set to start at start up like apache or mysql. Depending on what operating system you are on the command may vary. But here is what you need to do:

Code: Select all

chkconfig zoneminder on
Hope this helps.
moorsey
Posts: 53
Joined: Sun Jan 03, 2010 8:56 am

Post by moorsey »

Thanks for your reply, don't think I have described this properly though.

Zoneminder starts, but it starts stopped, if that makes sense.

It starts as much as I can access the web interface of it, but capture is not started until I start it manually.

I tried looking in the logs as to what happens when I click "START" in Zoneminder config:

Jan 2 08:57:56 ZONEMINDER1 zmpkg[26624]: INF [Command: start]

Running this "zmpkg" in the terminal just gives "Command not found", so couldn't set anything up to manually run it on startup.

Cheers

Martin
vanbosco
Posts: 11
Joined: Fri Feb 02, 2007 8:02 pm
Location: Italy

Post by vanbosco »

If you are using ubuntu probably sometimes ZM (that uses rc.d system to start) starts before mysql (that uses the new upstart to start), and so, if i have understood the problem, you see the video sources red in the web interface.
There are various posts regarding this problem, i have solved adding

Code: Select all

	while [ ! -e /var/run/mysqld/mysqld.sock ]
 		do
 		sleep 1
	done
before zmfix -a in ZM startup script /etc/init.d/zoneminder.
moorsey
Posts: 53
Joined: Sun Jan 03, 2010 8:56 am

Re: Startup Zoneminder State Always Stopped

Post by moorsey »

VERY sorry, never knew I had a reply to this! Didn't get emailed.

I have put this code in and will try it later, thanks very much for the tip, excellent!
Locked