From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.sysutils.supervision.general/1219 Path: news.gmane.org!not-for-mail From: "George Georgalis" Newsgroups: gmane.comp.sysutils.supervision.general Subject: Re: runsvdir and shutdown Date: Thu, 3 Aug 2006 15:50:41 -0400 Message-ID: <20060803195041.GE14020@run.galis.org> References: <20060731154010.GA25074@run.galis.org> <20060731211420.GC24344@home.power> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1154634707 24648 80.91.229.2 (3 Aug 2006 19:51:47 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 3 Aug 2006 19:51:47 +0000 (UTC) Original-X-From: supervision-return-1455-gcsg-supervision=m.gmane.org@list.skarnet.org Thu Aug 03 21:51:43 2006 Return-path: Envelope-to: gcsg-supervision@gmane.org Original-Received: from antah.skarnet.org ([212.85.147.14]) by ciao.gmane.org with smtp (Exim 4.43) id 1G8jDO-000558-Kt for gcsg-supervision@gmane.org; Thu, 03 Aug 2006 21:50:43 +0200 Original-Received: (qmail 26356 invoked by uid 76); 3 Aug 2006 19:51:03 -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 26351 invoked from network); 3 Aug 2006 19:51:03 -0000 Original-To: supervision@list.skarnet.org Mail-Followup-To: supervision@list.skarnet.org Content-Disposition: inline In-Reply-To: <20060731211420.GC24344@home.power> Xref: news.gmane.org gmane.comp.sysutils.supervision.general:1219 Archived-At: On Tue, Aug 01, 2006 at 12:14:20AM +0300, Alex Efros wrote: >On Mon, Jul 31, 2006 at 11:40:10AM -0400, George Georgalis wrote: >> Is there a prescribed method or someone's handy script for a >> runsvdir shutdown? > >Usual shutdown sequence include 'killall5 -15' command which send TERM to >all processes (including runsv and runsvdir). After this command I've >added 'sv force-stop /var/service/*' and that's enough for correct >shutdown AFAIK. okay, sounds good. I put '/usr/local/bin/sv force-stop /var/service/*' in /etc/rc.shutdown (before rcorder is run) for netbsd -- and learned 'shutdown' is better than 'reboot, poweroff, halt' BTW - why does 'sv d' send the CONT signal after TERM? // George -- George Georgalis, systems architect, administrator <