implement daemon
This commit is contained in:
@ -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():
|
||||
@ -44,6 +45,8 @@ def main():
|
||||
|
||||
config = utils.get_config(True)
|
||||
|
||||
daemon.daemon_exec(config)
|
||||
|
||||
utils.print_shadowsocks()
|
||||
|
||||
encrypt.try_cipher(config['password'], config['method'])
|
||||
|
Reference in New Issue
Block a user