Page 2 of 2

Re:

Posted: Thu May 19, 2011 8:42 pm
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!!

Re:

Posted: Mon Jan 16, 2012 8:23 pm
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.