Hey all,
Zoneminder system has been up and running nicely for a while now, just one question.
Whenever the system is rebooted, due to a powercut or scheduled maintenance etc, zoneminder is always "Stopped" when the system reboots. It would seem normal for it to be started when the system boots up.
Can this initial state be set somewhere? Or should it be starting and I just have a problem with my setup?
Cheers
Startup Zoneminder State Always Stopped
When you reboot your system zoneminder is not set to start at start up like apache or mysql. Depending on what operating system you are on the command may vary. But here is what you need to do:
Hope this helps.
Code: Select all
chkconfig zoneminder on
Thanks for your reply, don't think I have described this properly though.
Zoneminder starts, but it starts stopped, if that makes sense.
It starts as much as I can access the web interface of it, but capture is not started until I start it manually.
I tried looking in the logs as to what happens when I click "START" in Zoneminder config:
Jan 2 08:57:56 ZONEMINDER1 zmpkg[26624]: INF [Command: start]
Running this "zmpkg" in the terminal just gives "Command not found", so couldn't set anything up to manually run it on startup.
Cheers
Martin
Zoneminder starts, but it starts stopped, if that makes sense.
It starts as much as I can access the web interface of it, but capture is not started until I start it manually.
I tried looking in the logs as to what happens when I click "START" in Zoneminder config:
Jan 2 08:57:56 ZONEMINDER1 zmpkg[26624]: INF [Command: start]
Running this "zmpkg" in the terminal just gives "Command not found", so couldn't set anything up to manually run it on startup.
Cheers
Martin
If you are using ubuntu probably sometimes ZM (that uses rc.d system to start) starts before mysql (that uses the new upstart to start), and so, if i have understood the problem, you see the video sources red in the web interface.
There are various posts regarding this problem, i have solved adding
before zmfix -a in ZM startup script /etc/init.d/zoneminder.
There are various posts regarding this problem, i have solved adding
Code: Select all
while [ ! -e /var/run/mysqld/mysqld.sock ]
do
sleep 1
done
Re: Startup Zoneminder State Always Stopped
VERY sorry, never knew I had a reply to this! Didn't get emailed.
I have put this code in and will try it later, thanks very much for the tip, excellent!
I have put this code in and will try it later, thanks very much for the tip, excellent!