background

This commit is contained in:
wn 2009-02-23 22:35:10 +01:00
parent 86efde5a83
commit 6b00c7736b

View File

@ -50,16 +50,16 @@ CUSTOMERS_FILE = "/var/db/yadyn/customers"
ACTIONLOG_DIR = "/var/db/yadyn/actionlog" ACTIONLOG_DIR = "/var/db/yadyn/actionlog"
ADMIN_PWD = 'test123' ADMIN_PWD = 'test123'
DNS_DUMMY = False DNS_DUMMY = False
DEBUG = False DEBUG = True
BACKGROUND = False
if BACKGROUND:
if DEBUG:
pid = 0
else:
pid = os.fork() pid = os.fork()
else:
pid = 0
if pid: if pid:
pidFile = file(PID_FILE , mode='w') pidFile = file(PID_FILE , mode='w')