etwist/server.py
changeset 5694 ce2c108a9595
parent 5679 0f2ded880d01
child 5762 730d458ec1bf
equal deleted inserted replaced
5691:ba2347050144 5694:ce2c108a9595
   399     reactor.listenTCP(port, website)
   399     reactor.listenTCP(port, website)
   400     if not config.debugmode:
   400     if not config.debugmode:
   401         if sys.platform == 'win32':
   401         if sys.platform == 'win32':
   402             raise ConfigurationError("Under windows, you must use the service management "
   402             raise ConfigurationError("Under windows, you must use the service management "
   403                                      "commands (e.g : 'net start my_instance)'")
   403                                      "commands (e.g : 'net start my_instance)'")
       
   404         from logilab.common.daemon import daemonize
   404         LOGGER.info('instance started in the background on %s', root_resource.base_url)
   405         LOGGER.info('instance started in the background on %s', root_resource.base_url)
   405         if daemonize(config['pid-file']):
   406         if daemonize(config['pid-file']):
   406             return # child process
   407             return # child process
   407     root_resource.init_publisher() # before changing uid
   408     root_resource.init_publisher() # before changing uid
   408     if config['uid'] is not None:
   409     if config['uid'] is not None: