From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.sysutils.supervision.general/497 Path: main.gmane.org!not-for-mail From: prj@po.cwru.edu (Paul Jarc) Newsgroups: gmane.comp.sysutils.supervision.general Subject: Re: Who actually gets the TERM signal in "runsvctrl down"? Date: Fri, 25 Jun 2004 23:49:02 -0400 Organization: What did you have in mind? A short, blunt, human pyramid? 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 1088282313 8018 80.91.224.253 (26 Jun 2004 20:38:33 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 26 Jun 2004 20:38:33 +0000 (UTC) Cc: supervision@list.skarnet.org Original-X-From: supervision-return-735-gcsg-supervision=m.gmane.org@list.skarnet.org Sat Jun 26 22:38:24 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 1BeJwO-0008Jz-00 for ; Sat, 26 Jun 2004 22:38:24 +0200 Original-Received: (qmail 23440 invoked by uid 76); 26 Jun 2004 20:38:45 -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 23434 invoked from network); 26 Jun 2004 20:38:13 -0000 Original-To: Lloyd Zusman In-Reply-To: (Lloyd Zusman's message of "Fri, 25 Jun 2004 15:13:09 -0400") Mail-Copies-To: nobody Mail-Followup-To: Lloyd Zusman , supervision@list.skarnet.org Original-Lines: 17 User-Agent: Gnus/5.110003 (No Gnus v0.3) Emacs/21.3 (gnu/linux) Xref: main.gmane.org gmane.comp.sysutils.supervision.general:497 X-Report-Spam: http://spam.gmane.org/gmane.comp.sysutils.supervision.general:497 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. 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. paul