|
|
|
|
@ -6,9 +6,9 @@ cwd = os.getcwd() |
|
|
|
|
sys.path.append(os.path.join(cwd,"sys")) |
|
|
|
|
sys.path.append(os.path.join(cwd,"modules","active")) |
|
|
|
|
|
|
|
|
|
import demonize, brathuhn |
|
|
|
|
import demonize, brathuhn, config |
|
|
|
|
#Demonize |
|
|
|
|
if not demonize.demonize('./pid',False,'log.txt'): |
|
|
|
|
if not demonize.demonize(config.PIDFILE,False,config.LOGFILE): |
|
|
|
|
sys.stderr.write("Daemon already running") |
|
|
|
|
sys.exit(1) |
|
|
|
|
|
|
|
|
|
|