The rc.d startup scripts for www/apache22 and www/apache13-modssl contain a couple minor mistakes within the apache22_checkfib() and apache_checkfib() functions respectively: 1) These functions call "sysctl" rather than /sbin/sysctl. Under a shell with a decent $PATH this works fine, but under /bin/sh spawned from cron sysctl isn't found ($PATH lacks /sbin there). rc.subr(8) makes note of the SYSCTL variable which refers to the full path of sysctl(8). 2) Call /usr/sbin/setfib, rather than just "setfib". 3) Fix some extraneous tabbing on a "return 0" statement. Fix: Apply the below patches, respectively. I'll also follow up to this PR with URLs to the patches. How-To-Repeat: Make a cron job which does /usr/local/etc/rc.d/apache22 restart and examine the output -- it will show "sysctl: command not found". Alternatively, run /bin/sh then set PATH to /bin:/usr/bin.
Responsible Changed From-To: freebsd-ports-bugs->apache Over to maintainer (via the GNATS Auto Assign Tool)
The patches are located here: http://jdc.parodius.com/freebsd/153264/ Cheers! -- | Jeremy Chadwick jdc@parodius.com | | Parodius Networking http://www.parodius.com/ | | UNIX Systems Administrator Mountain View, CA, USA | | Making life hard for others since 1977. PGP: 4BD6C0CB |
Responsible Changed From-To: apache->pgollucci I will take it.
Responsible Changed From-To: pgollucci->apache Over to maintainer
State Changed From-To: open->closed Committed, Thanks!
pgollucci 2012-02-09 02:49:55 UTC FreeBSD ports repository Modified files: www/apache22 Makefile www/apache22/files apache22.in Log: - use $SYSCTL - use full path setfib PR: ports/153264 Submitted by: Jeremy Chadwick <freebsd@jdc.parodius.com> With Hat: apache@ Sponsored by: Apache Software Foundation (ASF) Revision Changes Path 1.298 +1 -1 ports/www/apache22/Makefile 1.12 +4 -4 ports/www/apache22/files/apache22.in _______________________________________________ cvs-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/cvs-all To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"