You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@trafficserver.apache.org by "Leif Hedstrom (JIRA)" <ji...@apache.org> on 2013/09/04 21:06:52 UTC
[jira] [Resolved] (TS-972) traffic_line should warn if a command
didn't succeed
[ https://issues.apache.org/jira/browse/TS-972?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Leif Hedstrom resolved TS-972.
------------------------------
Resolution: Fixed
Fix Version/s: (was: sometime)
The error message on traffic_line with manager not responding has been improved in a previous commit. The first two issues are more difficult to accommodate.
I'm going to close this one for now, please open a new ticket on the reporting of modifying non-dynamic configurations via traffic_line.
> traffic_line should warn if a command didn't succeed
> ----------------------------------------------------
>
> Key: TS-972
> URL: https://issues.apache.org/jira/browse/TS-972
> Project: Traffic Server
> Issue Type: Improvement
> Components: Management API
> Affects Versions: 3.1.0, 3.0.1
> Reporter: Arno Toell
>
> {{traffic_line}} is a handy tool to manage a traffic server instance. For example it is possible to retrieve and set configuration settings through command line like this:
> {code}
> root@wv-tmp2:/home/at# traffic_line -r proxy.config.http.server_port ; echo $?
> 81
> 0
> {code}
> However, some commans can be set, but aren't effective until the server is restarted, despite of ATS offering the _-x_ option to flush configuration and reread new settings:
> {code}
> root@wv-tmp2:/home/at# traffic_line -s proxy.config.http.server_port -v 80 ; echo $?
> 0
> root@wv-tmp2:/home/at# traffic_line -x ; echo $?
> 0
> {code}
> Trafficserver should possibly warn when setting such settings which aren't effective until the server is restarted and leave with a non-zero exit status for _-x_ in such cases.
> Moreover {{traffic_line}} does not work at all if the manager is not running:
> {code}
> # traffic_line -r proxy.config.http.server_port ; echo $?
> traffic_line: Variable Not Found
> 1
> {code}
> That's all right, but the error message shall be improved telling that. :)
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira