From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.sysutils.supervision.general/498 Path: main.gmane.org!not-for-mail From: Lloyd Zusman Newsgroups: gmane.comp.sysutils.supervision.general Subject: Re: Who actually gets the TERM signal in "runsvctrl down"? Date: Sat, 26 Jun 2004 17:10:46 -0400 Sender: news Message-ID: References: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1088284252 17535 80.91.224.253 (26 Jun 2004 21:10:52 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 26 Jun 2004 21:10:52 +0000 (UTC) Original-X-From: supervision-return-736-gcsg-supervision=m.gmane.org@list.skarnet.org Sat Jun 26 23:10:44 2004 Return-path: Original-Received: from antah.skarnet.org ([212.85.147.14]) by deer.gmane.org with smtp (Exim 3.35 #1 (Debian)) id 1BeKRg-0000un-00 for ; Sat, 26 Jun 2004 23:10:44 +0200 Original-Received: (qmail 23634 invoked by uid 76); 26 Jun 2004 21:11:05 -0000 Mailing-List: contact supervision-help@list.skarnet.org; run by ezmlm List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Archive: Original-Received: (qmail 23628 invoked from network); 26 Jun 2004 21:11:05 -0000 X-Injected-Via-Gmane: http://gmane.org/ Original-To: supervision@list.skarnet.org Original-Lines: 31 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: hippo.asfast.com User-Agent: Gnus/5.110002 (No Gnus v0.2) Emacs/21.2 (gnu/linux) Cancel-Lock: sha1:FYh521Mw2ln8kV1ERtNZSddpNuY= Xref: main.gmane.org gmane.comp.sysutils.supervision.general:498 X-Report-Spam: http://spam.gmane.org/gmane.comp.sysutils.supervision.general:498 prj@po.cwru.edu (Paul Jarc) writes: > Lloyd Zusman wrote: >> trap "stopfunc" 15 >> trap "gracefulfunc" 30 >> trap "restartfunc" 31 > ... >> exec /usr/bin/env -i PATH='/usr/bin:/bin' CHARSET='iso-8859-1' \ >> /command/pgrphack $HTTPD "$@" > > Those signal handlers will never be used, because the shell replaces > itself with httpd. "start"/"startssl" is the only Command that will > ever be executed. Well, that was dumb of me. Of course. > Your cleanup stuff doesn't have to be in the run script at all. You > can have a separate script that does that and then calls runsvctrl. As you can see from my subsequent messages here, I've figured out, more or less, what I need to do, based on what Charlie and you have been so patiently trying to get across to me. Thanks to you and to all. -- Lloyd Zusman ljz@asfast.com God bless you.