Merge "Added printing exit code of component process if it failed to start"
This commit is contained in:
commit
b9ed1ffc7d
@ -1556,7 +1556,7 @@ function screen_process {
|
|||||||
# Append the process to the screen rc file
|
# Append the process to the screen rc file
|
||||||
screen_rc "$name" "$command"
|
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
|
# Screen rc file builder
|
||||||
|
Loading…
x
Reference in New Issue
Block a user