Skip to content

Conversation

@StephaneRicci
Copy link

No description provided.

'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
if [ "${PID_COMMAND#*$MAIN}" != "$PID_COMMAND" ]; then
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As requested, we updated the detectos function to add a specific variable to be associated with the ps command on HP-UX platforms when the -o option is used.

This was not mentioned on the KARAF-5753 but we also provide an improvement for the following line in shell scripts:

if [ -z $READLINK_EXISTS ]; then

$READLINK_EXISTS was not protected, causing error message on some platforms where the variable was empty (see below):

client[2]: test: Specify a parameter with this command.
client[17]: readlink: not found.

HP-UX*)
hpux=true
# For HP-UX, set an environment variable
export PS_PREFIX="UNIX95= "
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you just fix the indentation with spaces and remove the leading tab please ?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK, done.

Updating indentation
@baptistedaroit
Copy link
Contributor

Tested on HP-UX B.11.31 ia64 with HP JDK 8 Java(TM) SE Runtime Environment (build 1.8.0.12-hp-ux-b1)

@jbonofre jbonofre self-requested a review May 24, 2018 11:47
@gnodet gnodet merged commit c4009b5 into apache:master May 24, 2018
gnodet pushed a commit to gnodet/karaf that referenced this pull request Mar 7, 2022
[ENTESB-17660] Revert "[KARAF-7159] Upgrade to Felix FileInstall 3.7.0"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants