restart on a crash? #12

bosky101 opened this Issue Dec 18, 2013 · 2 comments

3 participants


what is the expected design pattern for implementing restarts on crashing?

from the documentation, it isn't apparent how to handle errors

 from daemon import Daemon
 class App(Daemon):
   def run(self):     
       print 'crashing, so restart ?'

 daemon_runner = App('/tmp/')

or are restarts supposed to be handled by another process/module?

if restarts are indeed handled, an example would be great.



Yep, external process monitoring your daemon.

I'd do this with Supervisor.


As @medecau already said, that task should be handled externally with something like Supervior.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment