Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 17 May 2000 14:19:13 +0100
From:      Ben Smithurst <ben@scientia.demon.co.uk>
To:        Doug Barton <DougB@gorean.org>
Cc:        Marc Silver <marcs@draenor.org>, freebsd-questions@freebsd.org
Subject:   Re: "Hangup" in mail from cron
Message-ID:  <20000517141912.I10128@strontium.scientia.demon.co.uk>
In-Reply-To: <39223554.E45081A@gorean.org>
References:  <Pine.BSF.4.21.0005161231480.53178-100000@dt051n0b.san.rr.com> <20000517074925.F58332@draenor.org> <39223554.E45081A@gorean.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Doug Barton wrote:

> if [ -n "${PID}" ]; then
>         kill -HUP $PID
> else

How is $PID obtained?  It looks to me like the HUP is being sent to the
shell script somehow, that would explain why the shell prints "Hangup"
and cron mails that to you.  But I can't see how that would happen
unless the code to get $PID is badly broken.

On further investigation it seems that the shell prints Hangup when one of
its children sets SIGHUP, not when it itself gets SIGHUP.  Anyway, knowing
how PID is determined might be useful.

>         ps -auxww | grep httpd | grep -v grep

ps -auxww | grep '[h]ttpd'

ok, so I'm very fussy about using too many processes when one fewer
would do. :-)

-- 
Ben Smithurst / ben@scientia.demon.co.uk / PGP: 0x99392F7D


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?20000517141912.I10128>