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

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

jbonofre commented on pull request #855: [KARAF-6290] Enhance wrapper pid 
management on Solaris
URL: https://github.com/apache/karaf/pull/855
 
 
   
 
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


> Karaf Wrapper does not properly manage process on Solaris
> ---------------------------------------------------------
>
>                 Key: KARAF-6290
>                 URL: https://issues.apache.org/jira/browse/KARAF-6290
>             Project: Karaf
>          Issue Type: Bug
>          Components: karaf
>    Affects Versions: 4.2.5
>         Environment: Solaris 
> HP
>            Reporter: Baptiste DA ROIT
>            Assignee: Jean-Baptiste Onofré
>            Priority: Major
>             Fix For: 4.3.0, 4.2.6
>
>
> On Solaris platform, the restriction of ps command does not allow the Karaf 
> Service Wrapper to properly manage associated karaf process:
> {code}
> [root ~] # cat 
> /opt/smartcollector-dev2/smartcollector-dist-5.7.5-SNAPSHOT/smartcollector-dev2.wrapper.pid
> 6043
> [root ~] # ps -p 6043 -o comm
> COMMAND
> /opt/smartcollector-dev2/smartcollector-dist-5.7.5-SNAPSHOT/bin/smartcollector-
> {code}
> As we can see, if the path to wrapper executable is too long, il will cause 
> the service to fail to stop associated karaf instance, as detailed below:
> {code}
> [root ~] # /etc/init.d/smartcollector-dev2 status
> Removed stale pid file: 
> /opt/smartcollector-dev2/smartcollector-dist-5.7.5-SNAPSHOT/smartcollector-dev2.wrapper.pid
> smartcollector-dev2 is not running.
> [root ~] # ps -ef | grep smartco
> smcdev  6043     1   0 02:20:27 ?           0:01 
> /opt/smartcollector-dev2/smartcollector-dist-5.7.5-SNAPSHOT/bin/smartcollector-
> smcdev  6044  6043   0 02:20:28 ?           4:11 
> /opt/smartcollector-dev2/smartcollector-java/bin/java 
> -Djava.endorsed.dirs=/opt
> [root ~] # /etc/init.d/smartcollector-dev2 stop
> Stopping smartcollector-dev2...
> smartcollector-dev2 was not running.
> [root ~] # ps -ef | grep smartco
> smcdev  6043     1   0 02:20:27 ?           0:01 
> /opt/smartcollector-dev2/smartcollector-dist-5.7.5-SNAPSHOT/bin/smartcollector-
> smcdev  6044  6043   0 02:20:28 ?           4:11 
> /opt/smartcollector-dev2/smartcollector-java/bin/java 
> -Djava.endorsed.dirs=/opt
> {code}
> This issue can also appears on HP-UX platform, where default ps command is 
> also limited to a certain amount of characters (it seems to be 128).



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to