You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@karaf.apache.org by "Christian Brüssow (JIRA)" <ji...@apache.org> on 2017/08/10 10:54:00 UTC
[jira] [Updated] (KARAF-5304) checkRootInstance function in karaf
script fails under AIX
[ https://issues.apache.org/jira/browse/KARAF-5304?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Christian Brüssow updated KARAF-5304:
-------------------------------------
Description:
Calling e.g. the status script under KARAF_HOME on AIX, the subsequent called script "karaf" fails and prints the following to stdout:
{{
[...]
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]
[...]
}}
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:
{{
[...]
if ps p "${ROOT_INSTANCE_PID}" > /dev/null
then
[...
]}}
Under a standard AIX installation the command ps does not allow "-p" as an argument. So this call will always fail.
was:
Calling e.g. the status script under KARAF_HOME on AIX, the subsequent called script "karaf" fails and prints the following to stdout:
{{[...]
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]
[...]}}
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:
{{[...]
if ps p "${ROOT_INSTANCE_PID}" > /dev/null
then
[...]}}
Under a standard AIX installation the command ps does not allow "-p" as an argument. So this call will always fail.
> 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
>
> Calling e.g. the status script under KARAF_HOME on AIX, the subsequent called script "karaf" fails and prints the following to stdout:
> {{
> [...]
> 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]
> [...]
> }}
> 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:
> {{
> [...]
> if ps p "${ROOT_INSTANCE_PID}" > /dev/null
> then
> [...
> ]}}
> 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)