[prev in list] [next in list] [prev in thread] [next in thread]
List: linux-ha-dev
Subject: Re: [Linux-ha-dev] nginx resource agent
From: Dejan Muhamedagic <dejanmm () fastmail ! fm>
Date: 2010-12-14 9:42:25
Message-ID: 20101214094224.GA28353 () rondo ! homenet
[Download RAW message or body]
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?
Cheers,
Dejan
_______________________________________________________
Linux-HA-Dev: Linux-HA-Dev@lists.linux-ha.org
http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
Home Page: http://linux-ha.org/
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic