SvenVD / rpisurv

Raspberry Pi surveillance
https://community.rpisurv.net
GNU General Public License v2.0
621 stars 101 forks source link

systemctl is showing 'python survellance.py' running multiple times #35

Closed si458 closed 7 years ago

si458 commented 7 years ago

systemctl is showing 'python surviellance.py' running multiple times and crashing the PI at times

https://pastebin.com/KizBLEWF

i also see this issue when run manually 'sudo python surveillance.py'

should this be happening?

SvenVD commented 7 years ago

"systemctl is showing 'python surviellance.py' running multiple times and crashing the PI at times:"

Did you just startup or did you do some other commands after startup?

"i also see this issue when run manually 'sudo python surveillance.py':"

You should not run sudo python surveillance.py manually. You are just spawning multiple instances of rpisurv without killing previous instances, which will eventually eat up all resources. If you have systemd, only use systemd to stop start or restart rpisurv.

si458 commented 7 years ago

I see the multiple Python scripts being run at start up by using the systemctl

But also it i stop the systemctl and run sudo Python manually I still see multiple Python scripts being run?

I'm not mixing both methods of start ups

SvenVD commented 7 years ago

There are multiple python scripts running at the same time after starting rpisurv, one for each stream (watchdog) and a master process. You should not have more then those.

si458 commented 7 years ago

ah right ok, that makes more sense, the script/monitoring runs alot smoother on my Pi 3 then my Pi Zero if i do more than 4 cameras on the Pi Zero it struggles but the Pi 3 works without any issue!