Changes

From SME Server
Jump to navigationJump to search
183 bytes removed ,  03:20, 28 October 2016
m
Line 49: Line 49:  
  config set zoneminder service status enabled  
 
  config set zoneminder service status enabled  
 
  ln -s /etc/rc.d/init.d/e-smith-service /etc/rc7.d/S98zoneminder
 
  ln -s /etc/rc.d/init.d/e-smith-service /etc/rc7.d/S98zoneminder
 
+
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.
 
+
sed -i '/^start()/{N;s/$/\nsleep 10/}' /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 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 below could do with a better/safer sed command.)
  −
 
  −
In /etc/rc.d/init.d/zoneminder where is says:
  −
start()
  −
{
  −
[rest of the code]
  −
make it:
  −
start()
  −
{
  −
sleep 10
  −
[rest of the code]
  −
or in short:
  −
sed -i "29i sleep 10" /etc/rc.d/init.d/zoneminder
  −
 
   
You can now start Zoneminder manually:
 
You can now start Zoneminder manually:
 
  service zoneminder start
 
  service zoneminder start

Navigation menu