Echo service start failures.
* functions: Previously screen_it would log service start failures by touching a file, this isn't very useful when working with Jenkins. Switch to echo'ing that a service failed to start and pipe that through tee so that we can keep the old behavior of touching a file (note this behavior is slightly modified and the touched file will now have contents). Change-Id: I2d3f272b9a65a9d64dbbc01373a02fccf52f56a8
This commit is contained in:
parent
415360b231
commit
41815cdc7b
@ -1063,7 +1063,7 @@ function screen_it {
|
|||||||
sleep 1.5
|
sleep 1.5
|
||||||
|
|
||||||
NL=`echo -ne '\015'`
|
NL=`echo -ne '\015'`
|
||||||
screen -S $SCREEN_NAME -p $1 -X stuff "$2 || touch \"$SERVICE_DIR/$SCREEN_NAME/$1.failure\"$NL"
|
screen -S $SCREEN_NAME -p $1 -X stuff "$2 || echo \"$1 failed to start\" | tee \"$SERVICE_DIR/$SCREEN_NAME/$1.failure\"$NL"
|
||||||
else
|
else
|
||||||
# Spawn directly without screen
|
# Spawn directly without screen
|
||||||
run_process "$1" "$2" >$SERVICE_DIR/$SCREEN_NAME/$service.pid
|
run_process "$1" "$2" >$SERVICE_DIR/$SCREEN_NAME/$service.pid
|
||||||
|
Loading…
Reference in New Issue
Block a user