
keeplive key makes the services of shadowsocks-ng automatically start when logining system Replace the original way with launchctl start/stop, then start the services when needed as shadowsocks-ng using
11 lines
283 B
Bash
Executable File
11 lines
283 B
Bash
Executable File
#!/bin/sh
|
|
|
|
# stop_ss_local.sh
|
|
# ShadowsocksX-NG
|
|
#
|
|
# Created by 邱宇舟 on 16/6/6.
|
|
# Copyright © 2016年 qiuyuzhou. All rights reserved.
|
|
|
|
launchctl stop com.qiuyuzhou.shadowsocksX-NG.local
|
|
launchctl unload "$HOME/Library/LaunchAgents/com.qiuyuzhou.shadowsocksX-NG.local.plist"
|