Date: Tue, 16 May 2000 22:59:48 -0700 From: Doug Barton <DougB@gorean.org> To: Marc Silver <marcs@draenor.org> Cc: freebsd-questions@freebsd.org Subject: Re: "Hangup" in mail from cron Message-ID: <39223554.E45081A@gorean.org> References: <Pine.BSF.4.21.0005161231480.53178-100000@dt051n0b.san.rr.com> <20000517074925.F58332@draenor.org>
next in thread | previous in thread | raw e-mail | index | archive | help
Marc Silver wrote: > > What are you running from cron? Yeah, I realized that I neglected that detail in my post. :) I'm running a script that I wrote to rotate web server logs. Here is the relevant part of one of the scripts: if [ -n "${PID}" ]; then kill -HUP $PID else echo "Couldn't HUP $PID" ps -auxww | grep httpd | grep -v grep /usr/local/sbin/apachectl stop /usr/local/sbin/apachectl start fi The odd thing is, it is actually doing the kill. But for some reason it's also sending the word "Hangup" as if something generated output on stderr. Doug -- "Live free or die" - State motto of my ancestral homeland, New Hampshire Do YOU Yahoo!? To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?39223554.E45081A>