implement daemon
This commit is contained in:
parent
78f93a091c
commit
134497c24f
4 changed files with 240 additions and 36 deletions
|
@ -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']:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue