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"
ADMIN_PWD = 'test123'
DNS_DUMMY = False
DEBUG = False
DEBUG = True
BACKGROUND = False
if DEBUG:
pid = 0
else:
if BACKGROUND:
pid = os.fork()
else:
pid = 0
if pid:
pidFile = file(PID_FILE , mode='w')