equal
deleted
inserted
replaced
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: |