From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.sysutils.supervision.general/494 Path: main.gmane.org!not-for-mail From: Thomas Schwinge Newsgroups: gmane.comp.sysutils.supervision.general Subject: Re: Who actually gets the TERM signal in "runsvctrl down"? Date: Sat, 26 Jun 2004 10:17:35 +0200 Message-ID: <20040626081735.GA16250@speedy.schwinge.homeip.net> References: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1088238055 7442 80.91.224.253 (26 Jun 2004 08:20:55 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 26 Jun 2004 08:20:55 +0000 (UTC) Cc: supervision@list.skarnet.org Original-X-From: supervision-return-732-gcsg-supervision=m.gmane.org@list.skarnet.org Sat Jun 26 10:20:46 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 1Be8QY-0006zj-00 for ; Sat, 26 Jun 2004 10:20:46 +0200 Original-Received: (qmail 19290 invoked by uid 76); 26 Jun 2004 08:21:07 -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 19284 invoked from network); 26 Jun 2004 08:21:07 -0000 Original-To: Lloyd Zusman Mail-Followup-To: Lloyd Zusman , supervision@list.skarnet.org Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.1i Xref: main.gmane.org gmane.comp.sysutils.supervision.general:494 X-Report-Spam: http://spam.gmane.org/gmane.comp.sysutils.supervision.general:494 On Sat, Jun 26, 2004 at 12:03:02AM -0400, Lloyd Zusman wrote: > Lloyd Zusman writes: > > > [ ... ] > > > > restart: runscvtrl t apache; runsvctrl u apache > > (causes cleanup stuff to run during the second command) > > We both suggested this one, but I have a question: > > Why do we need the second "u" command? Won't the "run" script restart > on its own after the "t" command, thereby obviating the need for the "u" > command? It'll do so if apache was running before. If it was not running it will just be started. > In this case, the cleanup stuff in the script will get > re-invoked on restart, correct? Yes. Regards, Thomas