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 and yurem committed Jan 15, 2019
1 parent 52fa135 commit ac74820
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 ac74820

Please sign in to comment.