You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@bigtop.apache.org by "Mark Grover (JIRA)" <ji...@apache.org> on 2013/01/30 02:26:11 UTC

[jira] [Updated] (BIGTOP-836) Hue status on SuSE doesn't work when run from outside of /usr/bin

     [ https://issues.apache.org/jira/browse/BIGTOP-836?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Mark Grover updated BIGTOP-836:
-------------------------------

    Attachment: BIGTOP-836.1.patch

Patch that uses output of ps to find out the status of Hue on SuSE.

While I was on it, I fixed what looked like a minor stdout bug in stop() functionality.
                
> Hue status on SuSE doesn't work when run from outside of /usr/bin
> -----------------------------------------------------------------
>
>                 Key: BIGTOP-836
>                 URL: https://issues.apache.org/jira/browse/BIGTOP-836
>             Project: Bigtop
>          Issue Type: Bug
>            Reporter: Mark Grover
>            Assignee: Mark Grover
>         Attachments: BIGTOP-836.1.patch
>
>
> BIGTOP-829 added a "-L" flag in the status check for hue on SuSE 11. The flag was used to specify python as an argument instead of something like python2.7.
> However, that flag (to follow symlinks) doesn't quite work unless you are running the command from /usr/bin/ where there is a symlink called python pointing to python2.6. Moreover, it may lead to incorrect results if /usr/bin/python was not the python being used.
> Consequently, a better approach is needed. An idea is to parse the output of ps for the pid in question, ensure it's hue related and report the status. The benefit is that it's a clean process with no dependency on pidofproc or figuring out what version of python is being used.

--
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