Added printing exit code of component process if it failed to start
When command failed and component failed to start, original exit code was overwritten due to original command being executed in background. This commit adds information about command's exit code to echoed message about component's start up failure. Change-Id: I8a3dd485b1b1f2d70d42c5610baac7c0c713f53a Signed-off-by: Joanna Taryma <joanna.taryma@intel.com>
This commit is contained in:
parent
d89b175321
commit
9d49ed9834
@ -1552,7 +1552,7 @@ function screen_process {
|
||||
# Append the process to the screen rc file
|
||||
screen_rc "$name" "$command"
|
||||
|
||||
screen -S $SCREEN_NAME -p $name -X stuff "$command & echo \$! >$SERVICE_DIR/$SCREEN_NAME/${name}.pid; fg || echo \"$name failed to start\" | tee \"$SERVICE_DIR/$SCREEN_NAME/${name}.failure\"$NL"
|
||||
screen -S $SCREEN_NAME -p $name -X stuff "$command & echo \$! >$SERVICE_DIR/$SCREEN_NAME/${name}.pid; fg || echo \"$name failed to start. Exit code: \$?\" | tee \"$SERVICE_DIR/$SCREEN_NAME/${name}.failure\"$NL"
|
||||
}
|
||||
|
||||
# Screen rc file builder
|
||||
|
Loading…
x
Reference in New Issue
Block a user