Explorar o código

changed the code to also terminate the process if it is not run as daemon

Helmut Pozimski %!s(int64=11) %!d(string=hai) anos
pai
achega
ec052f3453
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      stdd

+ 1 - 0
stdd

@@ -58,6 +58,7 @@ def sighandler(signum, frame):
 		else:
 			logger.error("stopping daemon failed, PID file was not deleted!")
 			sys,exit(1)
+	sys.exit(0)
 	
 """ create the configuration object according to the given parameters and
 read the file itself