After pc reboot "Zoneminder Console - Stopped"

Forum for questions and support relating to the 1.24.x releases only.
crazy4offroad
Posts: 2
Joined: Fri Feb 27, 2009 2:12 pm

Re:

Post by crazy4offroad »

Pada wrote:This is typically what I have:
/var/log/syslog wrote:Aug 24 03:01:33 it-desktop zmfix[1267]: ERR [Can't connect to server: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)]
Aug 24 03:01:34 it-desktop /etc/mysql/debian-start[1431]: Upgrading MySQL tables if necessary.
* Note that ZM is trying to start 1 second before MySQL ^^

Simply adding 'sleep 15' in the line above 'zmfix -a' in the /etc/init.d/zoneminder file fixed my ZoneMinder startup problems!
Here's the new output from the syslog:
Aug 24 03:05:29 it-desktop /etc/mysql/debian-start[1412]: Upgrading MySQL tables if necessary.
Aug 24 03:05:44 it-desktop zmpkg[1731]: INF [Command: start]
^^ Now there's a nice 15 second gap :)
I have tried just about every combination of putting "Sleep 15" in the line above the one you describe and cannot get zm to delay after MySQL not even 1 second, Could you please post the exact way you have it? Here is how mine looks:

Code: Select all

start() {
	echo -n "Start $prog: "
    zmfix -a
	$command start
Thank you ahead of time!!
dewsyuff
Posts: 2
Joined: Sat Jan 14, 2012 7:21 pm

Re:

Post by dewsyuff »

novazion wrote:What I have done:

update-rc.d -f zoneminder remove
then
update-rc.d zoneminder defaults 92

So it strats after apache, and normally after mysql.

Worked for me.

This worked for me too.
Locked