etwist/server.py
changeset 5694 ce2c108a9595
parent 5679 0f2ded880d01
child 5762 730d458ec1bf
--- a/etwist/server.py	Wed Jun 09 09:42:52 2010 +0200
+++ b/etwist/server.py	Wed Jun 09 09:58:23 2010 +0200
@@ -401,6 +401,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
         LOGGER.info('instance started in the background on %s', root_resource.base_url)
         if daemonize(config['pid-file']):
             return # child process