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: [email protected] http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev Home Page: http://linux-ha.org/
