I'm using supervisor to monitor a long running gunicorn/flask process on my pi that monitors my garage door with a reed switch on a GPIO pin and GPIO.add_event_detect.

The problem is every time the door opens or closes supervisor sends SIGTERM to the app and restarts it.

If I run the app as a daemon process without supervisor it works fine, had no issues for over a week now.

Anyone else had an issue like this before?

  • do you know what are the odds of somebody else having the same hardware and same software as you? – jsotola Apr 28 '18 at 18:29
  • Since I posted this in the raspberry pi section I figured hardware would be quite common.. and I'm pretty sure many people use the gpio library on them... – h2Zero Apr 28 '18 at 19:04
  • i wasn't talking about the RPI when i said hardware – jsotola May 1 '18 at 17:35

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.