How best to reboot or power off Zoneminder servers quickly and gracefully?

Forum for questions and support relating to the 1.30.x releases only.
Post Reply
mysterylectricity
Posts: 18
Joined: Sat Jan 07, 2017 2:09 am

How best to reboot or power off Zoneminder servers quickly and gracefully?

Post by mysterylectricity » Sat Apr 14, 2018 8:47 am

I kept noticing a bunch of pesky errors in the log about not being able to stat /tmp/zm, socket errors, etc.

But once in a great while the logs would stay clean for days after a reboot. Seemed to come and go at random.

Eventually I hit on the idea of issuing "service zoneminder stop" before rebooting and that seemed to put a stop to all the errors.

What's the best way to reboot and power off a zoneminder server, respectively, with single commands? Gracefully, but without unneeded delay.

Probably in the docs somewhere, I really should read them cover to cover sometime.

TIA!

bbunge
Posts: 2704
Joined: Mon Mar 26, 2012 11:40 am
Location: Pennsylvania

Re: How best to reboot or power off Zoneminder servers quickly and gracefully?

Post by bbunge » Sat Apr 14, 2018 2:55 pm

sudo reboot

About as simple as it gets. Systemd will shut Zoneminder down before rebooting

mysterylectricity
Posts: 18
Joined: Sat Jan 07, 2017 2:09 am

Re: How best to reboot or power off Zoneminder servers quickly and gracefully?

Post by mysterylectricity » Tue Apr 17, 2018 11:07 pm

Thanks bbunge, yeah I more or less figured that out a day or two after posting. What had me fooled was that merely shutting down ZM via "service" seemed to take longer than a "reboot", so I assumed reboot was shutting down ungracefully. I think more the truth is that shuttinng down ZM via service took longer than _expected_, and reboot was faster than expected, so I subconciusly ignore thgat facts in the face of my expectations.

And the errors still come and go regardless so that was a a false lead, too.

rockedge
Posts: 1154
Joined: Fri Apr 04, 2014 1:46 pm
Location: Connecticut,USA
Contact:

Re: How best to reboot or power off Zoneminder servers quickly and gracefully?

Post by rockedge » Wed Apr 18, 2018 3:40 pm

those errors come and go on all my systems and I still have not tracked down why and when....but everything on those ZM installs work well regardless of those errors...or so it seems.

Post Reply

Who is online

Users browsing this forum: No registered users and 8 guests