Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id C9D17200CE0 for ; Thu, 10 Aug 2017 13:08:03 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id C86B216B1CB; Thu, 10 Aug 2017 11:08:03 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 20C8F16B1CD for ; Thu, 10 Aug 2017 13:08:02 +0200 (CEST) Received: (qmail 88216 invoked by uid 500); 10 Aug 2017 11:08:02 -0000 Mailing-List: contact issues-help@karaf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@karaf.apache.org Delivered-To: mailing list issues@karaf.apache.org Received: (qmail 88142 invoked by uid 99); 10 Aug 2017 11:08:02 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 10 Aug 2017 11:08:02 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id DB20DC0042 for ; Thu, 10 Aug 2017 11:08:01 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -99.202 X-Spam-Level: X-Spam-Status: No, score=-99.202 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id DfYKvgpibe6l for ; Thu, 10 Aug 2017 11:08:01 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id EFB315FD1B for ; Thu, 10 Aug 2017 11:08:00 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 70F89E059C for ; Thu, 10 Aug 2017 11:08:00 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 2520B23FFD for ; Thu, 10 Aug 2017 11:08:00 +0000 (UTC) Date: Thu, 10 Aug 2017 11:08:00 +0000 (UTC) From: =?utf-8?Q?Jean-Baptiste_Onofr=C3=A9_=28JIRA=29?= To: issues@karaf.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Assigned] (KARAF-5304) checkRootInstance function in karaf script fails under AIX MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Thu, 10 Aug 2017 11:08:04 -0000 [ https://issues.apache.org/jira/browse/KARAF-5304?page=3Dcom.atlassia= n.jira.plugin.system.issuetabpanels:all-tabpanel ] Jean-Baptiste Onofr=C3=A9 reassigned KARAF-5304: ------------------------------------------- Assignee: Jean-Baptiste Onofr=C3=A9 > checkRootInstance function in karaf script fails under AIX > ---------------------------------------------------------- > > Key: KARAF-5304 > URL: https://issues.apache.org/jira/browse/KARAF-5304 > Project: Karaf > Issue Type: Bug > Affects Versions: 4.0.9 > Environment: AIX 6.1, 7.1, 7.2 > Reporter: Christian Br=C3=BCssow > Assignee: Jean-Baptiste Onofr=C3=A9 > Fix For: 4.2.0, 4.0.10, 4.1.3 > > > Calling e.g. the status script under KARAF_HOME on AIX, the subsequent ca= lled script "karaf" fails and prints the following to stdout: > {quote} > [...] > Usage: ps [-AMNZaedfklm] [-n namelist] [-F Format] [-o specifier[=3Dheade= r],...] > [-p proclist][-G|-g grouplist] [-t termlist] [-U|-u userl= ist] [-c classlist] [ -T pid] [ -L pidlist ] > [-@ [wparname] ] > Usage: ps [aceglnsuvwxX] [t tty] [processnumber] > [...] > {quote} > The error is triggered by the function checkRootInstance() in the script = "karaf". The function uses the following code to determine the status of th= e karaf process: > {quote} > [...] > if ps p "$\{ROOT_INSTANCE_PID\}" > /dev/null > then > [...] > {quote} > Under a standard AIX installation the command ps does not allow "p" as an= argument. So this call will always fail. -- This message was sent by Atlassian JIRA (v6.4.14#64029)