# HG changeset patch # User Alexandre Fayolle # Date 1275570821 -7200 # Node ID 97343804414b9bbad2877cd19f6bf545779e32c5 # Parent 755f56f01c9d46ea10ea84499ad1814d37421117# Parent 8f56691f01deabbad97d37db3ec88bd15ac2c92a merge diff -r 8f56691f01de -r 97343804414b etwist/server.py --- a/etwist/server.py Thu Jun 03 13:20:07 2010 +0200 +++ b/etwist/server.py Thu Jun 03 15:13:41 2010 +0200 @@ -42,7 +42,6 @@ from cubicweb.web import dumps from logilab.common.decorators import monkeypatch -from logilab.common.daemon import daemonize from cubicweb import AuthenticationError, ConfigurationError, CW_EVENT_MANAGER from cubicweb.web import Redirect, DirectResponse, StatusResponse, LogOut @@ -395,6 +394,7 @@ if sys.platform == 'win32': raise ConfigurationError("Under windows, you must use the service management " "commands (e.g : 'net start my_instance)'") + from logilab.common.daemon import daemonize print 'instance starting in the background' if daemonize(config['pid-file']): return # child process