From 41815cdc7bcbd91500f9efad0f4e8d57fa4b284c Mon Sep 17 00:00:00 2001 From: Clark Boylan Date: Fri, 16 Aug 2013 14:57:38 -0700 Subject: [PATCH] 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 --- functions | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/functions b/functions index 37876e0cc2..19cf4ff813 100644 --- a/functions +++ b/functions @@ -1063,7 +1063,7 @@ function screen_it { sleep 1.5 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 # Spawn directly without screen run_process "$1" "$2" >$SERVICE_DIR/$SCREEN_NAME/$service.pid