Commit 8135b57eeb147197964ae83931c79d81ee766698

Authored by Clang
1 parent c4decdc5
Exists in master

Update ngrokd.init

Showing 1 changed file with 2 additions and 2 deletions   Show diff stats
ngrokd.init
... ... @@ -30,7 +30,7 @@ LOGFILE=${ProGramInstallPath}/ngrok.log
30 30 SCRIPTNAME=/etc/init.d/${NAME}
31 31 PID_DIR=/var/run
32 32 PID_FILE=$PID_DIR/ngrok_clang.pid
33   -version="v5.3"
  33 +version="v5.4"
34 34 manage_port="4446"
35 35 RET_VAL=0
36 36  
... ... @@ -157,7 +157,7 @@ fun_status(){
157 157 if netstat -tnpl | grep -q ${NAME}; then
158 158 PID=`pidof ${NAME}`
159 159 echo "${ProgramName} (pid $PID) is running..."
160   - netstat -tnpl | grep -q ${NAME}
  160 + netstat -tnpl | grep "${NAME}"
161 161 else
162 162 echo "${ProgramName} is stopped"
163 163 exit 0
... ...