Page 1 of 1
Getting Zoneminder to start automatically
Posted: Sun Aug 16, 2015 5:05 am
by swulf
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.
Re: Getting Zoneminder to start automatically
Posted: Sun Aug 16, 2015 10:07 am
by asker
swulf 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 install using the PPA? If so
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.
Re: Getting Zoneminder to start automatically
Posted: Sun Aug 16, 2015 2:59 pm
by swulf
Hi asker,
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
...
to
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
Posted: Mon Aug 17, 2015 10:22 pm
by bbunge
Re: Getting Zoneminder to start automatically
Posted: Tue Aug 18, 2015 1:33 am
by swulf
I was unaware of this page, thank you for pointing it out.
Re: Getting Zoneminder to start automatically
Posted: Tue Aug 18, 2015 4:05 pm
by iconnor
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"
Re: Getting Zoneminder to start automatically
Posted: Wed Jun 03, 2020 10:38 am
by petec
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?