Skip to content

Commit

Permalink
update config files
Browse files Browse the repository at this point in the history
  • Loading branch information
teddysun committed Dec 4, 2016
1 parent 4e556a0 commit 3cc1938
Show file tree
Hide file tree
Showing 6 changed files with 30 additions and 6 deletions.
6 changes: 5 additions & 1 deletion shadowsocks
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,11 @@ elif [ -f /usr/local/bin/ssserver ]; then
BIN=/usr/local/bin/ssserver
fi
NAME=Shadowsocks
CONF=/etc/shadowsocks.json
if [ -f /etc/shadowsocks-python/config.json ]; then
CONF=/etc/shadowsocks-python/config.json
elif [ -f /etc/shadowsocks.json ]; then
CONF=/etc/shadowsocks.json
fi
RETVAL=0

check_running(){
Expand Down
6 changes: 5 additions & 1 deletion shadowsocks-debian
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,11 @@ elif [ -f /usr/local/bin/ssserver ]; then
BIN=/usr/local/bin/ssserver
fi
NAME=Shadowsocks
CONF=/etc/shadowsocks.json
if [ -f /etc/shadowsocks-python/config.json ]; then
CONF=/etc/shadowsocks-python/config.json
elif [ -f /etc/shadowsocks.json ]; then
CONF=/etc/shadowsocks.json
fi
RETVAL=0

check_running(){
Expand Down
6 changes: 5 additions & 1 deletion shadowsocks-go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,11 @@

NAME=Shadowsocks-go
BIN=/usr/bin/shadowsocks-server
CONF=/etc/shadowsocks/config.json
if [ -f /etc/shadowsocks-go/config.json ]; then
CONF=/etc/shadowsocks-go/config.json
elif [ -f /etc/shadowsocks/config.json ]; then
CONF=/etc/shadowsocks/config.json
fi
PID_DIR=/var/run
PID_FILE=$PID_DIR/shadowsocks-go.pid
RET_VAL=0
Expand Down
6 changes: 5 additions & 1 deletion shadowsocks-go-debian
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,11 @@

NAME=Shadowsocks-go
BIN=/usr/bin/shadowsocks-server
CONF=/etc/shadowsocks/config.json
if [ -f /etc/shadowsocks-go/config.json ]; then
CONF=/etc/shadowsocks-go/config.json
elif [ -f /etc/shadowsocks/config.json ]; then
CONF=/etc/shadowsocks/config.json
fi
PID_DIR=/var/run
PID_FILE=$PID_DIR/shadowsocks-go.pid
RET_VAL=0
Expand Down
6 changes: 5 additions & 1 deletion shadowsocksR
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,11 @@

NAME=ShadowsocksR
BIN=/usr/local/shadowsocks/server.py
CONF=/etc/shadowsocks.json
if [ -f /etc/shadowsocks-r/config.json ]; then
CONF=/etc/shadowsocks-r/config.json
elif [ -f /etc/shadowsocks.json ]; then
CONF=/etc/shadowsocks.json
fi
RETVAL=0

check_running(){
Expand Down
6 changes: 5 additions & 1 deletion shadowsocksR-debian
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,11 @@

NAME=ShadowsocksR
BIN=/usr/local/shadowsocks/server.py
CONF=/etc/shadowsocks.json
if [ -f /etc/shadowsocks-r/config.json ]; then
CONF=/etc/shadowsocks-r/config.json
elif [ -f /etc/shadowsocks.json ]; then
CONF=/etc/shadowsocks.json
fi
RETVAL=0

check_running(){
Expand Down

0 comments on commit 3cc1938

Please sign in to comment.