[
https://issues.apache.org/jira/browse/KARAF-5765?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Baptiste DA ROIT updated KARAF-5765:
------------------------------------
Description:
(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}
was:
(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.
(i) 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].
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}
> 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
> 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
(v7.6.3#76005)