|
Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com |
Re: /bin/sh on /etc/rc terminated - pipes in httpd.conf?
From: Dan Harnett (danh
nfol.com)
Date: Fri Aug 20 2004 - 08:08:10 CDT
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Fri, Aug 20, 2004 at 01:57:11AM -0700, ax
ax-im.com wrote:
> The only google result which seemed even vaguely similar to mine
> (http://monkey.org/openbsd/archive/misc/0109/msg00584.html) exhibited
> one thing in common -- he was also using pipes in his log rotation,
> although he was using rotatelogs. Nobody who replied suggested this as
> a possible culprit.
I highly recommend using marc.theaimsgroup.com for searching mailing
list archives.
http://marc.theaimsgroup.com/?l=openbsd-misc&m=109097594100085&w=2
There is even a PR open.
A quick workaround is to trap SIGTERM in /etc/rc.local if httpd is
started.
Index: rc
===================================================================
RCS file: /cvs/src/etc/rc,v
retrieving revision 1.250
diff -u -p -r1.250 rc
--- rc 7 Aug 2004 00:50:25 -0000 1.250
+++ rc 20 Aug 2004 13:05:35 -0000

-537,7 +537,7 
fi
if [ "X${httpd_flags}" != X"NO" ]; then
# Clean up left-over httpd locks
rm -f /var/www/logs/{ssl_mutex,httpd.lock,accept.lock}.*
- echo -n ' httpd'; /usr/sbin/httpd ${httpd_flags}
+ echo -n ' httpd'; ( trap : 15; /usr/sbin/httpd ${httpd_flags} )
fi
if [ "X${ftpd_flags}" != X"NO" ]; then
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]