Skip to content

Commit

Permalink
Remove the pidfile of the daemon before attempting to kill it
Browse files Browse the repository at this point in the history
  • Loading branch information
dnaeon committed Sep 12, 2013
1 parent a258651 commit 225f810
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/vmpoller/daemon.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,9 @@ def stop(self):

return # Not an error in a restart

# Just for sure, remove the pidfile while we are here
os.remove(self.pidfile)

# Try killing the daemon process
try:
i = 0
Expand Down

0 comments on commit 225f810

Please sign in to comment.