Browse code

Merge "Added printing exit code of component process if it failed to start"

Jenkins authored on 2017/03/03 11:53:05
Showing 1 changed files
... ...
@@ -1556,7 +1556,7 @@ function screen_process {
1556 1556
     # Append the process to the screen rc file
1557 1557
     screen_rc "$name" "$command"
1558 1558
 
1559
-    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"
1559
+    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"
1560 1560
 }
1561 1561
 
1562 1562
 # Screen rc file builder