mirror of
https://github.com/shadowsocks/shadowsocks-libev.git
synced 2026-11-16 11:04:01 +00:00
refine shadowsocks init scripts
This commit is contained in:
@@ -4,13 +4,13 @@
|
||||
START=95
|
||||
STOP=95
|
||||
|
||||
SERVICE_USE_PID=1
|
||||
|
||||
start() {
|
||||
service_start /usr/bin/ss-local -c /etc/config/shadowsocks.json -f /var/run/shadowsocks.pid
|
||||
echo "starting shadowsocks..."
|
||||
/usr/bin/ss-local -c /etc/config/shadowsocks.json -f /var/run/shadowsocks.pid
|
||||
}
|
||||
|
||||
stop() {
|
||||
service_stop /usr/bin/ss-local
|
||||
echo "shadowsocks stopped."
|
||||
kill -9 `cat /var/run/shadowsocks.pid`
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user