accumulo-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sean Busbey (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (ACCUMULO-1791) status command for init.d script doesn't work with service command
Date Fri, 25 Oct 2013 23:40:32 GMT

    [ https://issues.apache.org/jira/browse/ACCUMULO-1791?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13805833#comment-13805833
] 

Sean Busbey commented on ACCUMULO-1791:
---------------------------------------

yep, it's [commit 7bf6148f|https://git-wip-us.apache.org/repos/asf?p=accumulo.git;a=commit;h=7bf6148f2f19266ea3194be15d6ebb1f8a7d98a8].
The commit message fails to mention the ticket number, so it's hard to see.

> status command for init.d script doesn't work with service command
> ------------------------------------------------------------------
>
>                 Key: ACCUMULO-1791
>                 URL: https://issues.apache.org/jira/browse/ACCUMULO-1791
>             Project: Accumulo
>          Issue Type: Bug
>          Components: scripts
>    Affects Versions: 1.4.4, 1.5.0
>         Environment: CentOS release 6.4 (Final)
>            Reporter: Jeff Field
>            Assignee: Jeff Field
>            Priority: Minor
>             Fix For: 1.4.5, 1.5.1, 1.6.0
>
>         Attachments: ACCUMULO-1791.1.patch.txt
>
>
> The current version of the init.d script uses the returned result of pwd -P to get the
physical path of the init.d script. This works when directly executing:
> [root@localhost tmp]# /etc/init.d/accumulo status
> There are 3 accumulo processes on this machine
> But when executing it with the /sbin/service command on RHEL/CentOS, the value returned
by the `pwd -P` command is no longer the directory the script is expecting, and instead returns
'/', resulting in incorrect output:
> [root@localhost tmp]# service accumulo status
> There are 0 accumulo processes on this machine



--
This message was sent by Atlassian JIRA
(v6.1#6144)

Mime
View raw message