avalon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stephen McConnell <mcconn...@apache.org>
Subject Re: Checking PHOENIX_PID for validity
Date Thu, 04 Mar 2004 01:01:12 GMT

Niclas:

Off-hand, do you know if this is covered in the merlin scripts as well?

Stephen.



Niclas Hedhman wrote:

> On Thursday 04 March 2004 08:46, Noel J. Bergman wrote:
> 
>>>        if [ -f $PHOENIX_PID ]
>>>        then
>>>            phpid=`cat $PHOENIX_PID 2>/dev/null`
>>>            piddata=`ps $phpid | grep phoenix.home 2>/dev/null`
>>>            if [ "$piddata" != "" ]
>>>            then
>>>                    echo "Already Running!!"
>>>                    exit 1
>>>            fi
>>>        fi
>>>
>>>Not sure wether the phoenix team would be interested in doing somthing
>>>similar so as to avoid this kind of problem!
>>
>>I'll cc the Avalon folks so that they can consider it.
> 
> 
> 
> This is already present in Phoenix, at least what is in the CVS.
> 
>   start)
>         echo "Starting Phoenix: "
> 
>         if [ -f $PHOENIX_PID ]
>         then
>            if ps -p `cat $PHOENIX_PID ` >/dev/null 2>/dev/null
>            then
>                echo "Already Running!!"
>                exit 1
>            fi
>         fi
> 
> 
> Cheers
> Niclas


-- 

|------------------------------------------------|
| Magic by Merlin                                |
| Production by Avalon                           |
|                                                |
| http://avalon.apache.org/merlin                |
| http://dpml.net/merlin/distributions/latest    |
|------------------------------------------------|

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@avalon.apache.org
For additional commands, e-mail: dev-help@avalon.apache.org


Mime
View raw message