Page 1 of 1

Startup Zoneminder State Always Stopped

Posted: Fri Dec 24, 2010 3:58 pm
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

Posted: Sun Dec 26, 2010 1:05 am
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.

Posted: Sun Jan 02, 2011 9:51 am
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

Posted: Sun Jan 02, 2011 12:13 pm
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.

Re: Startup Zoneminder State Always Stopped

Posted: Sat May 21, 2011 10:39 am
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!