I dont want to record my garden when I am at home to save diskspace.
So I am using this script here -> https://git.e.tern.al/s2/isphonehere/sr ... onehere.sh
The script checks whether my mobile phone and so I are at home otherwise it switch the zoneminder state from "AT-HOME" state to "ALARM-STATE".
But often zoneminder stops after switching and this occurs only when the zmeventserver is active.
I figured out that the zmeventnotification.pl is running and can stopped only by killing the task (kill -9 xxx).
That command doesnt works:
Code: Select all
sudo -u www-data /usr/bin/zmdc.pl stop zmeventnotification.pl
Is there a bug in the script or is it possible to modify it? I already tried to stop zoneminder after the "script login" and to start before "logout" but that doesnt helps.
Could anyone help me to fix this problem?
Some more log:
Date/Time
Component Server PID Level Message File Line
2021-07-06 15:18:26 zmeventnotification 238397 ERR Memory map file '/dev/shm/zm.mmap.3' does not exist in zmMemAttach. zmc might not be running. zmeventnotification.pl
2021-07-06 15:18:26 zmeventnotification 238397 ERR |----> FORK:Monitor-3 (3), eid:85599 SHM failed, re-validating it zmeventnotification.pl
2021-07-06 15:18:26 zmeventnotification 238398 ERR Memory map file '/dev/shm/zm.mmap.1' does not exist in zmMemAttach. zmc might not be running. zmeventnotification.pl
2021-07-06 15:18:26 zmeventnotification 238397 ERR Memory map file '/dev/shm/zm.mmap.3' does not exist in zmMemAttach. zmc might not be running. zmeventnotification.pl
2021-07-06 15:18:26 zmeventnotification 238398 ERR |----> FORK:Monitor-1 (1), eid:85598 SHM failed, re-validating it zmeventnotification.pl