[ https://issues.apache.org/jira/browse/KARAF-5304?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16123308#comment-16123308 ]
ASF subversion and git services commented on KARAF-5304: -------------------------------------------------------- Commit 7281969cff49399c8f4817456e56de3b06b5b7e0 in karaf's branch refs/heads/karaf-4.1.x from [~jbonofre] [ https://git-wip-us.apache.org/repos/asf?p=karaf.git;h=7281969 ] [KARAF-5304] Update karaf script to be compliant with AIX > 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üssow > Assignee: Jean-Baptiste Onofré > Fix For: 4.2.0, 4.0.10, 4.1.3 > > > Calling e.g. the status script under KARAF_HOME on AIX, the subsequent called > script "karaf" fails and prints the following to stdout: > {quote} > [...] > Usage: ps [-AMNZaedfklm] [-n namelist] [-F Format] [-o specifier[=header],...] > [-p proclist][-G|-g grouplist] [-t termlist] [-U|-u userlist] > [-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 the > 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)