Fixed shadowsocks service
This commit is contained in:
parent
3831e2bf52
commit
99bc0b915b
|
|
@ -257,7 +257,7 @@ function install_go(){
|
||||||
chkconfig --add shadowsocks
|
chkconfig --add shadowsocks
|
||||||
chkconfig shadowsocks on
|
chkconfig shadowsocks on
|
||||||
else
|
else
|
||||||
update-rc.d shadowsocks defaults
|
update-rc.d -f shadowsocks defaults
|
||||||
fi
|
fi
|
||||||
# Start shadowsocks
|
# Start shadowsocks
|
||||||
/etc/init.d/shadowsocks start
|
/etc/init.d/shadowsocks start
|
||||||
|
|
@ -333,7 +333,7 @@ function install_shadowsocks_go(){
|
||||||
|
|
||||||
# Initialization step
|
# Initialization step
|
||||||
action=$1
|
action=$1
|
||||||
[ -z $1 ] && action=install
|
[ -z $1 ] && action=install
|
||||||
case "$action" in
|
case "$action" in
|
||||||
install)
|
install)
|
||||||
install_shadowsocks_go
|
install_shadowsocks_go
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user