From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.sysutils.supervision.general/475 Path: main.gmane.org!not-for-mail From: Lloyd Zusman Newsgroups: gmane.comp.sysutils.supervision.general Subject: Who actually gets the TERM signal in "runsvctrl down"? Date: Fri, 25 Jun 2004 10:01:19 -0400 Sender: news Message-ID: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1088172122 27836 80.91.224.253 (25 Jun 2004 14:02:02 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 25 Jun 2004 14:02:02 +0000 (UTC) Original-X-From: supervision-return-713-gcsg-supervision=m.gmane.org@list.skarnet.org Fri Jun 25 16:01:41 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 1BdrGu-0008DV-00 for ; Fri, 25 Jun 2004 16:01:40 +0200 Original-Received: (qmail 11309 invoked by uid 76); 25 Jun 2004 14:02:01 -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 11303 invoked from network); 25 Jun 2004 14:02:01 -0000 X-Injected-Via-Gmane: http://gmane.org/ Original-To: supervision@list.skarnet.org Original-Lines: 20 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:cHBurjHtBLa1rV89W1K++WAymE4= Xref: main.gmane.org gmane.comp.sysutils.supervision.general:475 X-Report-Spam: http://spam.gmane.org/gmane.comp.sysutils.supervision.general:475 Who actually receives the TERM signal when "runsvctrl down SVC" is invoked? Does that signal get sent to the SVC/run script? The reason I'm asking is that I'm trying to put apache under runit control. I'd like "runsvctrl up apache" to invoke "apachectl start" (that's trivially easy), and I'd like "runsvctrl down apache" to invoke "apachectl stop". If the TERM signal gets sent to the SVC/run script, then I can write a trap for that signal within that script which would cause "apachectl stop" to be invoked, thereby providing a clean shutdown. Or is there a better way to do this? Thanks in advance. -- Lloyd Zusman ljz@asfast.com God bless you.