Hi,
I running Zoneminder V1.28.1 under Ubuntu Server 14.04.3 LTS. I've configured my PC to boot automatically after a power failure, and Zoneminder also starts once the system boots. However, it comes up in the 'Stopped' state which is not good. I want it to automatically enter the 'Running' state so that it will not just sit there, but will actually monitor things.
Can anyone point me to a way to do that?
Thanks.
Getting Zoneminder to start automatically
Re: Getting Zoneminder to start automatically
Did you install using the PPA? If soswulf wrote:Hi,
I running Zoneminder V1.28.1 under Ubuntu Server 14.04.3 LTS. I've configured my PC to boot automatically after a power failure, and Zoneminder also starts once the system boots. However, it comes up in the 'Stopped' state which is not good. I want it to automatically enter the 'Running' state so that it will not just sit there, but will actually monitor things.
Can anyone point me to a way to do that?
Thanks.
Did you add "sleep 10" just after start() in /etc/init.d/zoneminder? I use the same setup and mine starts in running state on reboot.
I no longer work on zmNinja, zmeventnotification, pyzm or mlapi. I may respond on occasion based on my available time/interest.
Please read before posting:
How to set up logging properly
How to troubleshoot and report - ES
How to troubleshoot and report - zmNinja
ES docs
zmNinja docs
Please read before posting:
How to set up logging properly
How to troubleshoot and report - ES
How to troubleshoot and report - zmNinja
ES docs
zmNinja docs
Re: Getting Zoneminder to start automatically
Hi asker,
Yes, I did install from the PPA. I made this change per your advice and it works.
Thanks!
to
Yes, I did install from the PPA. I made this change per your advice and it works.
Thanks!
Code: Select all
start() {
echo -n "Starting $prog: "
mkdir -p $RUNDIR && chown www-data:www-data $RUNDIR
...
Code: Select all
start() {
sleep 10
echo -n "Starting $prog: "
mkdir -p $RUNDIR && chown www-data:www-data $RUNDIR
...
Re: Getting Zoneminder to start automatically
I was unaware of this page, thank you for pointing it out.
Re: Getting Zoneminder to start automatically
I prefer to use monit to keep things running
ocne you get monit installed, you can use the following as a config for zm.
check process zmdc.pl with pidfile /run/zm/zm.pid
group zm
start program = "/etc/init.d/zoneminder start"
stop program = "/etc/init.d/zoneminder stop"
ocne you get monit installed, you can use the following as a config for zm.
check process zmdc.pl with pidfile /run/zm/zm.pid
group zm
start program = "/etc/init.d/zoneminder start"
stop program = "/etc/init.d/zoneminder stop"
Re: Getting Zoneminder to start automatically
hello, I know this is old post.
I have the same problem on FrreBSD, with ZM running in jail....
anybody know how to move it automatically to running state after power failure?
I have the same problem on FrreBSD, with ZM running in jail....
anybody know how to move it automatically to running state after power failure?