Return-Path: X-Original-To: apmail-accumulo-notifications-archive@minotaur.apache.org Delivered-To: apmail-accumulo-notifications-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 7C51210DAC for ; Fri, 18 Oct 2013 21:53:21 +0000 (UTC) Received: (qmail 56781 invoked by uid 500); 18 Oct 2013 21:52:00 -0000 Delivered-To: apmail-accumulo-notifications-archive@accumulo.apache.org Received: (qmail 56632 invoked by uid 500); 18 Oct 2013 21:51:49 -0000 Mailing-List: contact notifications-help@accumulo.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: jira@apache.org Delivered-To: mailing list notifications@accumulo.apache.org Received: (qmail 56563 invoked by uid 99); 18 Oct 2013 21:51:42 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 18 Oct 2013 21:51:42 +0000 Date: Fri, 18 Oct 2013 21:51:41 +0000 (UTC) From: "Mike Drob (JIRA)" To: notifications@accumulo.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (ACCUMULO-1791) status command for init.d script doesn't work with service command MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/ACCUMULO-1791?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13799557#comment-13799557 ] Mike Drob commented on ACCUMULO-1791: ------------------------------------- {{readlink -f}} will not work on a Mac. For other ideas, check out http://stackoverflow.com/questions/1055671/how-can-i-get-the-behavior-of-gnus-readlink-f-on-a-mac > 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 > 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)