The mysqlinit (init-default-databases) process (which starts after the zoneminder service) will have MySQL restarted whilst Zoneminder is actively using it. The Zoneminder service will not start for due to this running process. To prevent Zoneminder to start too quickly we delay the Zoneminder service to start a bit later by adding a sleep command in the script /etc/rc.d/init.d/zoneminder.
+
The mysqlinit (init-default-databases) process (which starts after the zoneminder service) will have MySQL restarted whilst Zoneminder is actively using it. The Zoneminder service will stop/not start due to this. To prevent Zoneminder to start too quickly we delay the Zoneminder service to start a bit later by adding a sleep command in the script /etc/rc.d/init.d/zoneminder.
sed -i '/^start()/{N;s/$/\nsleep 10/}' /etc/rc.d/init.d/zoneminder
sed -i '/^start()/{N;s/$/\nsleep 10/}' /etc/rc.d/init.d/zoneminder