Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
Daemonized OctoPrint does not clean up pidfile anymore #1324
What were you doing?
Writing an rc script for FreeBSD. Reproduction steps:
/tmp/octoprint.pid persists -- this was previously addressed in issue #711 with PR #712, but it has since broken. The following SIGTERM registration clobbers this handler: https://github.com/foosel/OctoPrint/blob/master/src/octoprint/server/__init__.py#L511-L516 -- so the daemonize'd SIGTERM does not get called, and the pidfile does not get cleaned up.
What did you expect to happen?
pidfile to get cleaned up
What happened instead?
pidfile did not get cleaned up
Branch & Commit or Version of OctoPrint
Link to octoprint.log
I have read the FAQ.