Author: dmeyer
Date: Sat Mar 15 13:34:07 2008
New Revision: 3195
Log:
set running after daemonize
Modified:
trunk/beacon/bin/beacon-daemon
Modified: trunk/beacon/bin/beacon-daemon
==============================================================================
--- trunk/beacon/bin/beacon-daemon (original)
+++ trunk/beacon/bin/beacon-daemon Sat Mar 15 13:34:07 2008
@@ -152,8 +152,6 @@
print 'beacon-daemon is already running.'
sys.exit(1)
-kaa.utils.set_running('beacon-daemon')
-
# Start a new beacon server. If run in daemon mode we fork and detach from the
# parent. After that a logger is created and the thumbnail server will be
# forked out.
@@ -162,7 +160,9 @@
if not logfile:
logfile = os.path.join(database, 'server.log')
daemonize_lock = kaa.utils.daemonize(wait = True)
-
+
+kaa.utils.set_running('beacon-daemon')
+
# create logger
if logfile:
if os.path.dirname(logfile) and not
os.path.isdir(os.path.dirname(logfile)):
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Freevo-cvslog mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog