removed daemonize code that is not needed for services, cleaned up need for logrotate, removed some logging that was not useful

This commit is contained in:
Blake J. Harnden 2018-03-23 09:57:37 -07:00
parent 1ac862cc17
commit 44363b0500
7 changed files with 20 additions and 255 deletions

View file

@ -138,8 +138,9 @@ class SimpleLxcNode(PyCoreNode):
try:
os.kill(self.pid, signal.SIGTERM)
os.waitpid(self.pid, 0)
except OSError:
logger.exception("error killing process")
except OSError as e:
if e.errno != 10:
logger.exception("error killing process")
# remove node directory if present
try: