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

ASF GitHub Bot commented on KARAF-5765:
---------------------------------------

baptistedaroit opened a new pull request #513: [KARAF-5765] Enhance 
karaf-service on HP-UX 
URL: https://github.com/apache/karaf/pull/513
 
 
   Add display of HP-UX service instructions + fix bad usage of shell commands 
in karaf-service script when used on HPUX platform

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


> 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
(v7.6.3#76005)

Reply via email to