Re:
Posted: Thu May 19, 2011 8:42 pm
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:Pada wrote:This is typically what I have:* Note that ZM is trying to start 1 second before MySQL ^^/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.
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:^^ Now there's a nice 15 second gapAug 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]
Code: Select all
start() {
echo -n "Start $prog: "
zmfix -a
$command start