Skip to content

Commit

Permalink
self.autorestart was not always set, making dogstatsd to crash when n…
Browse files Browse the repository at this point in the history
…ot launched using supervisor, fix #381
  • Loading branch information
remh authored and alq666 committed Feb 27, 2013
1 parent 7509dd3 commit dec09d7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions daemon.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ class Daemon:
Usage: subclass the Daemon class and override the run() method
"""
def __init__(self, pidfile, stdin=os.devnull, stdout=os.devnull, stderr=os.devnull):
self.autorestart = False
self.stdin = stdin
self.stdout = stdout
self.stderr = stderr
Expand Down

0 comments on commit dec09d7

Please sign in to comment.