Disallow starting apache from rc.d script some times Fix: From ports/www/apache13-modssl/files/rcng.sh pidfile="${apache_pidfile}" -start_cmd="echo \"Starting ${name}.\"; /usr/bin/limits -U www ${command} ${apache_flags} ${command_args}" +start_precmd="`/usr/bin/limits -e -U www`" run_rc_command "$1"--J0Xv7GM3qdmC2XYy1ifat7isJDQQzLCTUJv1MXprg7x4HwjF Content-Type: text/plain; name="file.diff" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="file.diff" --- apacheold.sh Tue Feb 21 05:47:46 2006 +++ apache.sh Thu Aug 10 17:13:24 2006 @@ -27,6 +27,6 @@ How-To-Repeat: # /usr/local/etc/rc.d/apache.sh start Starting apache. # /usr/local/etc/rc.d/apache.sh start Starting apache. # /usr/local/etc/rc.d/apache.sh start Starting apache.
Responsible Changed From-To: freebsd-ports-bugs->ache Over to maintainer
State Changed From-To: open->feedback 1) I don't understand the problem. 2) This fix is wrong in anycase, it set limits for _all_ scripts running after apache.
Hello. >1) I don't understand the problem. Another machine with www/apache13-modssl: # /usr/local/etc/rc.d/apache.sh start Starting apache. # /usr/local/etc/rc.d/apache.sh start apache already running? (pid=4834). But with www/apache13 I can start apache many times. Try it. >2) This fix is wrong in anycase, it set limits for _all_ scripts running after apache. I've just got this fix from ports/www/apache13-modssl/files/rcng.sh . Is this script wrong too? -- WBR
On Thu, Aug 10, 2006 at 06:06:00PM +1000, Alexander Logvinov wrote: > # /usr/local/etc/rc.d/apache.sh start > Starting apache. > # /usr/local/etc/rc.d/apache.sh start > apache already running? (pid=4834). Just don't do that or suggest right fix. Perhaps ask rcNG people. I don't understand rcNG fully. > >2) This fix is wrong in anycase, it set limits for _all_ scripts running after apache. > I've just got this fix from ports/www/apache13-modssl/files/rcng.sh . Is this script wrong too? Yes. You should fill bug report to apache13-modssl maintainer, describing the problem and suggesting fix from apache13 port. -- http://ache.pp.ru/
State Changed From-To: feedback->closed Fixed in 1.3.37_1