Baptiste DA ROIT created KARAF-5765:
---------------------------------------
Summary: 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
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|https://issues.apache.org/jira/browse/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}
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]).
Point 2 needs adaptation to the karaf-service script to use uname with -p
option only if available and to use uname -m 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|[http://nixdoc.net/man-pages/HP-UX/man1M/rc.1M.html],]
[here|[https://community.hpe.com/t5/System-Administration/Adding-script-in-startup/td-p/5322749]
and|https://community.hpe.com/t5/System-Administration/Adding-script-in-startup/td-p/5322749],]
[here|https://community.hpe.com/t5/System-Administration/Proper-Way-of-Adding-rc-Startup-Scripts-on-HPUX/m-p/3206236#M167576].
{color:#000000} {color}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)