On 12/14/2010 02:42 AM, Dejan Muhamedagic wrote:
> Hi Alan,
>
> On Mon, Dec 06, 2010 at 10:41:48AM -0700, Alan Robertson wrote:
>> Hi,
>>
>> Attached is a resource agent for the nginx web server/proxy package.
>>
>> http://en.wikipedia.org/wiki/Nginx
>> http://nginx.org/
>>
>> I'd like for it to be added to the next release of the resource
>> agents package.
> It's a pity that we cannot share code with the apache RA. We need
> to setup some place for that.
>
> Pushed to the repository.
>
>> #
>> # I'm not convinced this is a wonderful idea (AlanR)
>> #
>> for sig in SIGTERM SIGHUP SIGKILL
>> do
>> if
>> pgrep -f "$NGINXD.*$CONFIGFILE">/dev/null
>> then
>> pkill -$sig -f $NGINXD.*$CONFIGFILE>/dev/null
>> ocf_log info "nginxd children were signalled ($sig)"
>> sleep 1
>> else
>> break
>> fi
>> done
> Can't recall anymore the details, there was a bit of discussion
> on the matter a few years ago, but NTT insisted on killing httpd
> children. Or do you mind the implementation?
Hi Dejan,
I know it's been a long time. Sorry about that. If I _hated_ the idea,
I would have left it out. It definitely leaves me feeling a bit
unsettled. If it causes a problem, it will no doubt eventually show
up. It looks like it's just masking a bug in Apache - that is, that
giving it a shutdown request doesn't really work...
Perhaps I shouldn't have kept it in the nginx code - since it does seem
to be a bit specific to some circumstance in Apache... On the other
hand, it shouldn't hurt anything either...
--
Alan Robertson<[email protected]>
"Openness is the foundation and preservative of friendship... Let me claim
from you at all times your undisguised opinions." - William Wilberforce
_______________________________________________________
Linux-HA-Dev: [email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
Home Page: http://linux-ha.org/