* Alex Efros [2006-10-06 02:58:25 +0300]: > On Sun, Oct 01, 2006 at 11:29:40AM +0200, Mark wrote: > > #!/bin/sh > > exec 2>&1 > > exec /command/chpst -P /usr/local/apache2/bin/httpd -DNO_DETACH > > Hmm. I'm using Gentoo, and maybe it add some custom patches for apache > related to this issue, not sure. But AFAIK -DNO_DETACH is enough and no > process group hack needed anymore. My exec line in run script is: > > exec env -i PATH=$PATH apache2 -DNO_DETACH -k start -DSSL > > Gentoo's package name is: net-www/apache-2.0.58-r2. This is what I'm using in Annvix: http://svn.annvix.org/cgi-bin/viewcvs.cgi/releases/2.0-CURRENT/httpd-conf/SOURCES/httpd.run?root=packages&view=markup It's a little long to paste in here because we do some auto-detection and definitions of modules for the way our configuration file is laid out, but we haven't needed to use chpst with httpd, and we also use -DNO_DETACH. -- {FEE30AD4 : 7F6C A60C 06C2 4811 FA1C A2BC 2EBC 5E32 FEE3 0AD4} mysql> SELECT * FROM users WHERE clue > 0; Empty set (0.00sec)