Skip to content

Commit

Permalink
Should check for proper error string
Browse files Browse the repository at this point in the history
  • Loading branch information
ganesh-at-wiw authored Dec 5, 2018
1 parent 9710ad4 commit 1645f9f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion static/system/initd/passport
Original file line number Diff line number Diff line change
Expand Up @@ -458,7 +458,7 @@ do_start () {

dip_in_logs
START_STATUS=`tail -n 10 $NODE_INIT_LOG|grep -i 'Server listening on http://localhost'`
ERROR_STATUS=`tail -n 10 $NODE_INIT_LOG|egrep -i "[ERROR] Error in starting the server|Error"`
ERROR_STATUS=`tail -n 10 $NODE_INIT_LOG|egrep -i "[ERROR] Error in starting the server|[Error]"`
if [ "x$START_STATUS" = "x" ]; then
###If by chance log file doesn't provide necessary string, sleep another 10 seconds and check again PID of process
if [ "x$ERROR_STATUS" != "x" ]; then
Expand Down

0 comments on commit 1645f9f

Please sign in to comment.