caktus / margarita

A collection of delicious Salt states for Django project deployments.
BSD 3-Clause "New" or "Revised" License
34 stars 8 forks source link

Put Celerybeat PID file on temp filesystem #158

Open vkurup opened 6 years ago

vkurup commented 6 years ago

@kmtracey noticed that during an unscheduled reboot, celerybeat didn't restart because the PID file was still in place. @dpoirier mentioned that we should place these files on a temporary filesystem so that, on reboot, they would no longer be present.

This link recommends that they be placed in /var/run (which soft links to /run in Ubuntu, a temporary filesystem)

vkurup commented 6 years ago

Thanks for looking Dan, but I think I'll need to test this before merging. Dane found an issue when working on a similar PR for Tequila, and I'll bet that Margarita will have the same problem: https://github.com/caktus/tequila-django/pull/28