Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 421990 - Start/Stop/Restart produces odd output
Summary: Start/Stop/Restart produces odd output
Status: RESOLVED FIXED
Alias: None
Product: Community
Classification: Eclipse Foundation
Component: CI-Jenkins (show other bugs)
Version: unspecified   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Thanh Ha CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 413102
  Show dependency tree
 
Reported: 2013-11-18 11:15 EST by Denis Roy CLA
Modified: 2013-11-19 16:30 EST (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Denis Roy CLA 2013-11-18 11:15:30 EST
The output of the actual command that runs the start/stop/restart is producing some odd output.  It would be great if it could produce useful output to report the status of the action, since I'm piping that output to the web interface.

Here's an example of the "Start" action:
No value for $TERM and no -T specified Starting Hudson Build Services /home/services/global/hudson/hudson-init: line 98: printf: [OK]: invalid number
Comment 1 Thanh Ha CLA 2013-11-18 11:19:08 EST
Without looking closer at the code. I think the simple solution is to add a check like so:

     if ($TERM) {
         // Do stuff
     }


The tput line is to calculate the terminal width in order to put the "[OK]" text on the right side of the screen. If there is no terminal then this calculation fails.
Comment 2 Thanh Ha CLA 2013-11-19 16:02:16 EST
Should be fixed now.

Denis, can you give it a try?
Comment 3 Denis Roy CLA 2013-11-19 16:30:09 EST
Works great, the output text is now useful. Thanks.