implement --user

fix @278
This commit is contained in:
clowwindy 2015-02-02 15:38:55 +08:00
parent da65d0a2ee
commit ae99698b4e
4 changed files with 48 additions and 9 deletions

View file

@ -73,6 +73,7 @@ def main():
sys.exit(1)
signal.signal(signal.SIGINT, int_handler)
daemon.set_user(config.get('user', None))
loop.run()
except (KeyboardInterrupt, IOError, OSError) as e:
logging.error(e)