Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

service.py: added status logging when service shuts down

  • Loading branch information...
commit 5b816b68859daa010e51e07ebb4652e4af2bc043 1 parent 7d41e60
@trey0 trey0 authored
Showing with 4 additions and 0 deletions.
  1. +4 −0 geocamPycroraptor2/service.py
View
4 geocamPycroraptor2/service.py
@@ -172,8 +172,10 @@ def isStartable(self):
return statuslib.isStartable(self._status)
def _stopInternal(self):
+ self._eventLogger.warning('received stop command, sending SIGTERM signal')
self._proc.send_signal(signal.SIGTERM)
gevent.sleep(5)
+ self._eventLogger.warning('service did not stop after first attempt, sending SIGKILL signal')
self._proc.send_signal(signal.SIGKILL)
def _setStatus(self, statusDict):
@@ -202,6 +204,8 @@ def _cleanup(self):
procStatus=statuslib.CLEAN_EXIT,
returnValue=0)
self._setStatus(newStatus)
+ self._eventLogger.warning('stopped')
+ self._eventLogger.warning('status: %s', newStatus)
self._postExitCleanup()
self._proc = None
Please sign in to comment.
Something went wrong with that request. Please try again.