Skip to content

Commit

Permalink
Fix status check error
Browse files Browse the repository at this point in the history
  • Loading branch information
loyess committed Oct 1, 2023
1 parent b20ae83 commit b11e562
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion service/shadowsocks-libev.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ if [ ! -d "$(dirname ${LOG})" ]; then
fi

check_pid(){
get_pid=`ps -ef |grep -v grep | grep ss-server |awk '{print $2}'`
get_pid=`ps -ef |grep -v grep | grep $DAEMON |awk '{print $2}'`
}

check_pid
Expand Down
2 changes: 1 addition & 1 deletion service/shadowsocks-rust.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ if [ ! -d "$(dirname ${LOG})" ]; then
fi

check_pid(){
get_pid=`ps -ef |grep -v grep | grep ssservice |awk '{print $2}'`
get_pid=`ps -ef |grep -v grep | grep $DAEMON |awk '{print $2}'`
}

check_pid
Expand Down
6 changes: 3 additions & 3 deletions ss-plugins.sh
Original file line number Diff line number Diff line change
Expand Up @@ -291,15 +291,15 @@ status_init(){
if [ -e "${SHADOWSOCKS_LIBEV_BIN_PATH}" ]; then
ssName="Shadowsocks-libev"
ssPath="${SHADOWSOCKS_LIBEV_BIN_PATH}"
ssPid=`ps -ef | grep -v grep | grep ss-server | awk '{print $2}'`
ssPid=`ps -ef | grep -v grep | grep $SHADOWSOCKS_LIBEV_BIN_PATH | awk '{print $2}'`
elif [ -e "${SHADOWSOCKS_RUST_BIN_PATH}" ]; then
ssName="Shadowsocks-rust"
ssPath="${SHADOWSOCKS_RUST_BIN_PATH}"
ssPid=`ps -ef | grep -v grep | grep ssservice | awk '{print $2}'`
ssPid=`ps -ef | grep -v grep | grep $SHADOWSOCKS_RUST_BIN_PATH | awk '{print $2}'`
elif [ -e "${GO_SHADOWSOCKS2_BIN_PATH}" ]; then
ssName="Go-shadowsocks2"
ssPath="${GO_SHADOWSOCKS2_BIN_PATH}"
ssPid=`ps -ef | grep -v grep | grep go-shadowsocks2 | awk '{print $2}'`
ssPid=`ps -ef | grep -v grep | grep $GO_SHADOWSOCKS2_BIN_PATH | awk '{print $2}'`
fi

if [ -e "${V2RAY_PLUGIN_BIN_PATH}" ]; then
Expand Down

0 comments on commit b11e562

Please sign in to comment.