pf.close()
try:
os.kill(pid, signal.SIGHUP)
- alreadyRunning()
+ self.alreadyRunning()
except OSError:
pass
else:
- alreadyRunning()
+ self.alreadyRunning()
# Create a PID file
pid = str(os.getpid())
sys.stderr.write("Daemonise failed: (%d) %s\n" % (e.errno, e.strerror))
sys.exit(1)
- # Initialise debugging, and do the other half of SIGHUPstuff
- debug.reloadConfig()
- legacy.reloadConfig()
-
# Do any auto-update stuff
housekeep.init()
# Create the application
app = App()
+ # Initialise debugging, and do the other half of SIGHUPstuff
+ debug.reloadConfig()
+ legacy.reloadConfig()
+
reactor.run()
if __name__ == "__main__":