stephane Ricci created KARAF-5753:
-------------------------------------

             Summary: Karaf won't start correctly on HP-UX 11.31
                 Key: KARAF-5753
                 URL: https://issues.apache.org/jira/browse/KARAF-5753
             Project: Karaf
          Issue Type: Bug
          Components: karaf-shell
    Affects Versions: 4.2.0
         Environment: HP-UX 11.31
            Reporter: stephane Ricci


On HP system, default ps command does not support -o option
{code:java}
$ ps -p 21601 -o args
ps: illegal option -- o
usage: ps [-edaxzflP] [-u ulist] [-g glist] [-p plist] [-t tlist] [-R prmgroup] 
[-Z psetidlist]

$ UNIX95= ps -p 21601 -o args
COMMAND
/usr/sbin/stm/uut/bin/tools/monitor/dm_fclp_adapter
{code}
This command line :
{code:java}
PID_COMMAND=$(ps -p "${ROOT_INSTANCE_PID}" -o args | sed 1d)
{code}
should be replaced by :

 
{code:java}
DIST_OS=`uname -s | tr [:upper:] [:lower:] | tr -d [:blank:]`

 case "$DIST_OS" in
                'hp-ux')PID_COMMAND=$(UNIX95= ps -p "${ROOT_INSTANCE_PID}" -o 
args | sed 1d);;
                *)PID_COMMAND=$(ps -p "${ROOT_INSTANCE_PID}" -o args | sed 1d);;
              esac{code}
 

 



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

Reply via email to