[
https://issues.apache.org/jira/browse/KARAF-5753?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16488844#comment-16488844
]
ASF subversion and git services commented on KARAF-5753:
--------------------------------------------------------
Commit 2b09e37d3ff6c4dee1cbe809bd6c2bc2e2879566 in karaf's branch
refs/heads/master from [~baptistedaroit]
[ https://gitbox.apache.org/repos/asf?p=karaf.git;h=2b09e37 ]
[KARAF-5753] Fix bad protection of READLINK_EXISTS variable in shell scripts
> Karaf won't start correctly on HP-UX
> ------------------------------------
>
> Key: KARAF-5753
> URL: https://issues.apache.org/jira/browse/KARAF-5753
> Project: Karaf
> Issue Type: Bug
> Components: karaf-shell
> Affects Versions: 4.2.0
> Environment: HP-UX 11.31
> Reporter: stephane Ricci
> Assignee: Jean-Baptiste Onofré
> Priority: Major
>
> On HP system, default ps command does not support -o option
> {code:java}
> $ ps -p 21601 -o args
> ps: illegal option -- o
> usage: ps [-edaxzflP] [-u ulist] [-g glist] [-p plist] [-t tlist] [-R
> prmgroup] [-Z psetidlist]
> $ UNIX95= ps -p 21601 -o args
> COMMAND
> /usr/sbin/stm/uut/bin/tools/monitor/dm_fclp_adapter
> {code}
> This command line :
> {code:java}
> PID_COMMAND=$(ps -p "${ROOT_INSTANCE_PID}" -o args | sed 1d)
> {code}
> should be replaced by :
>
> {code:java}
> DIST_OS=`uname -s | tr [:upper:] [:lower:] | tr -d [:blank:]`
> case "$DIST_OS" in
> 'hp-ux')PID_COMMAND=$(UNIX95= ps -p "${ROOT_INSTANCE_PID}" -o
> args | sed 1d);;
> *)PID_COMMAND=$(ps -p "${ROOT_INSTANCE_PID}" -o args | sed
> 1d);;
> esac{code}
>
>
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)