From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.sysutils.supervision.general/1145 Path: news.gmane.org!not-for-mail From: Adam Megacz Newsgroups: gmane.comp.sysutils.supervision.general Subject: contrib OpenAFS server script for runit [Was: "sv down foo" => kill -SIGQUIT?] Date: Sat, 03 Jun 2006 12:21:08 -0700 Organization: Myself Message-ID: References: <20060603120409.GA24322@home.power> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1149362496 7409 80.91.229.2 (3 Jun 2006 19:21:36 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 3 Jun 2006 19:21:36 +0000 (UTC) Cc: rra@stanford.edu, pape@smarden.org Original-X-From: supervision-return-1381-gcsg-supervision=m.gmane.org@list.skarnet.org Sat Jun 03 21:21:32 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 1Fmbgh-0007gk-59 for gcsg-supervision@gmane.org; Sat, 03 Jun 2006 21:21:31 +0200 Original-Received: (qmail 30587 invoked by uid 76); 3 Jun 2006 19:21:52 -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 30581 invoked from network); 3 Jun 2006 19:21:52 -0000 X-Injected-Via-Gmane: http://gmane.org/ Original-To: supervision@list.skarnet.org Original-Lines: 37 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: megacz.com X-Home-Page: http://www.megacz.com/ User-Agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.4 (gnu/linux) Cancel-Lock: sha1:FPlmFQZT9IvMpDmYF8EACiBFI3I= Original-Sender: news Xref: news.gmane.org gmane.comp.sysutils.supervision.general:1145 Archived-At: Alex Efros writes: >> Is there any way to tell runit that this process wants to be sent a >> SIGQUIT rather than SIGTERM? I know about "sv quit foo", but I'm >> worried I'll accidentally type "sv down foo". > > Check runsv manual page, 'CUSTOMIZE CONTROL' section. Perfect! Thanks! I'd like to contribute the following configuration to handle the OpenAFS server suite (openafs.org) /var/service/afs-server/run #!/bin/bash exec /usr/sbin/bosserver -nofork /var/service/afs-server/control/t #!/bin/bash sv quit afs-server Bosserver really needs to be sent SIGQUIT; if you sent it SIGTERM it will die but leave its child processes running (orphaned), at which point they're difficult to easily shut down cleanly. You might want to consider adding this here in case other people don't know about the SIGQUIT thing (it took me a while to figure it out). http://smarden.org/runit/runscripts.html Thanks again; runit is great! - a -- PGP/GPG: 5C9F F366 C9CF 2145 E770 B1B8 EFB1 462D A146 C380