Parcourir la source

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

Helmut Pozimski il y a 11 ans
Parent
commit
ec052f3453
1 fichiers modifiés avec 1 ajouts et 0 suppressions
  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