Skip to content

Commit

Permalink
Don't remove pid file inside sigterm()
Browse files Browse the repository at this point in the history
Should fix #43
Closes #44
  • Loading branch information
thesharp committed Feb 24, 2016
1 parent c97f1ef commit 29ec27d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions daemonize.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
from logging import handlers


__version__ = "2.4.2"
__version__ = "2.4.3"


class Daemonize(object):
Expand Down Expand Up @@ -60,7 +60,6 @@ def sigterm(self, signum, frame):
These actions will be done after SIGTERM.
"""
self.logger.warn("Caught signal %s. Stopping daemon." % signum)
os.remove(self.pid)
sys.exit(0)

def exit(self):
Expand Down

0 comments on commit 29ec27d

Please sign in to comment.