implement daemon

This commit is contained in:
clowwindy 2014-12-21 12:47:07 +08:00
parent 78f93a091c
commit 134497c24f
4 changed files with 240 additions and 36 deletions

View file

@ -30,7 +30,8 @@ import logging
import signal
sys.path.insert(0, os.path.join(os.path.dirname(__file__), '../'))
from shadowsocks import utils, encrypt, eventloop, tcprelay, udprelay, asyncdns
from shadowsocks import utils, daemon, encrypt, eventloop, tcprelay, udprelay,\
asyncdns
def main():
@ -38,6 +39,8 @@ def main():
config = utils.get_config(False)
daemon.daemon_exec(config)
utils.print_shadowsocks()
if config['port_password']: