karaf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Baptiste DA ROIT (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (KARAF-5765) karaf-service script not working on HP-UX
Date Wed, 23 May 2018 15:47:00 GMT

    [ https://issues.apache.org/jira/browse/KARAF-5765?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16487505#comment-16487505

Baptiste DA ROIT commented on KARAF-5765:

I just opened a PR to fix the karaf-service on HP-UX. Let me know if it's okay for you or
if you want some adjustments.

Do you want the same improvment for AIX platforms?

> karaf-service script not working on HP-UX
> -----------------------------------------
>                 Key: KARAF-5765
>                 URL: https://issues.apache.org/jira/browse/KARAF-5765
>             Project: Karaf
>          Issue Type: Bug
>    Affects Versions: 4.2.0
>         Environment: HP-UX
>            Reporter: Baptiste DA ROIT
>            Assignee: Jean-Baptiste Onofré
>            Priority: Major
> (x) The karaf-service script generated by the _*wrapper:install*_ command is not working
on HP-UX 11.31, due to:
>  # Bad usage of ps command (such as described in KARAF-5753)
>  # Bad usage of uname command. The ip option [is not supported on HP-UX|https://docstore.mik.ua/manuals/hp-ux/en/B2355-60130/uname.1.html],
which cause the following error:
> {code:java}
> uname: illegal option -- p
> usage: uname [-amnrsvil] [-S nodename]
> {code}
> (on) Point 1 can be resolved using the UNIX95 construct that invokes the XPG4 environment,
which offers some additional options (as explained [here|https://community.hpe.com/t5/System-Administration/What-is-UNIX95-in-these-commands/td-p/4968255]).
> (on) Point 2 needs adaptation to the karaf-service script to use uname with -p option
only if available and to use uname -m instead if -p option is not supported.
> (!) Moreover, the _*wrapper:install*_ command does not detect HP-UX platform an thus
does not provide information about how to install an HP-UX standard compliant service, as
described [here|https://community.hpe.com/t5/System-Administration/Proper-Way-of-Adding-rc-Startup-Scripts-on-HPUX/m-p/3206236#M167576].
> (i) Further explanations can be found on the HP community forum:
>  * [https://community.hpe.com/t5/System-Administration/Adding-script-in-startup/td-p/5322749]
>  * [https://community.hpe.com/t5/System-Administration/Starting-and-Stopping-a-Program-with-a-Startup-Shutdown-Script/td-p/2943349]
> {color:#000000} {color}

This message was sent by Atlassian JIRA

View raw message