Who turned off the lights?

Forum for questions and support relating to 1.33.x development only.
Locked
AnotherBrian
Posts: 112
Joined: Tue Jul 27, 2010 6:36 am

Who turned off the lights?

Post by AnotherBrian »

A common occurrence with all versions of zoneminder is for it to stop. There are various postings suggesting it might be mysql or other conditions that overloaded the system. In the latter, there is no hint on determining which condition triggered the overload. Work arounds have been suggested by making systemd always restart zoneminder and another is to use additional software that monitors zoneminder and restarts it if it detects that it has stopped.

The fact that a stop command is recorded in the log suggests zoneminder received a sigterm signal. Looking at the structure available to the signal handler of the process receiving the signal, the invoking process id is included. Suggested is the log entry be updated to include the process id and process name, if known.
User avatar
knight-of-ni
Posts: 2404
Joined: Thu Oct 18, 2007 1:55 pm
Location: Shiloh, IL

Re: Who turned off the lights?

Post by knight-of-ni »

We already know what is sending the sigterm. For operating systems using systemd, all stop/start commands are redirected through Systemd, regardless of how the user or system tries to stop/start zoneminder. Consequently, the process id sending the sigterm is 1, in all cases.

Systemd is detecting a fault in something that zoneminder depends on. It reacts by sending the stop command because of that. You have to look at the system logs (journalctl), around the time zoneminder was stopped, to find clues as to why systemd decided to stop zoneminder.
Visit my blog for ZoneMinder related projects using the Raspberry Pi, Orange Pi, Odroid, and the ESP8266
All of these can be found at https://zoneminder.blogspot.com/
AnotherBrian
Posts: 112
Joined: Tue Jul 27, 2010 6:36 am

Re: Who turned off the lights?

Post by AnotherBrian »

thanks!
Locked