From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.sysutils.supervision.general/2485 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Steve Litt Newsgroups: gmane.comp.sysutils.supervision.general Subject: Generic interrupt command? Date: Fri, 1 Feb 2019 21:36:20 -0500 Message-ID: <20190201213620.68abc837@mydesk.domain.cxm> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="206335"; mail-complaints-to="usenet@blaine.gmane.org" To: supervision@list.skarnet.org Original-X-From: supervision-return-2075-gcsg-supervision=m.gmane.org@list.skarnet.org Sat Feb 02 03:36:27 2019 Return-path: Envelope-to: gcsg-supervision@m.gmane.org Original-Received: from alyss.skarnet.org ([95.142.172.232]) by blaine.gmane.org with smtp (Exim 4.89) (envelope-from ) id 1gplAQ-000rYW-Qo for gcsg-supervision@m.gmane.org; Sat, 02 Feb 2019 03:36:27 +0100 Original-Received: (qmail 20932 invoked by uid 89); 2 Feb 2019 02:36:52 -0000 Mailing-List: contact supervision-help@list.skarnet.org; run by ezmlm Original-Sender: Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Original-Received: (qmail 20925 invoked from network); 2 Feb 2019 02:36:52 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; h=X-Originating-IP:Date:From:To:Subject:Message-ID:X-Mailer:MIME-Version:Content-Type:Content-Transfer-Encoding; s=default; d=troubleshooters.com; b=JfAkJ8uOb9nozL23htdgNT6m5/Ig+kAg6wH0KNUaIrRMYUbTT0Mx76QYzsIB/FpgVJobWnb+qIBxJeGx8P/TFwiREklYOk/ZIdCXkw5lfF8m7+vpdojnBuZ6n4WdDCOE/0ZsbP0NheimAMYWOJL/1zUo6V9Es/jFDmla+YAAr3k=; DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/simple; d=troubleshooters.com; s=default; t=1549074981; bh=TMLddNe/8cA/wInYoDU1s3t2ins=; l=674; h=X-Originating-IP:Date:From:To:Subject:Message-ID:X-Mailer: MIME-Version:Content-Type:Content-Transfer-Encoding; b=BznDEUdPtUjb2KCaf1GAb9b949baiPJ5B5TbmUTwv08FZ05WpNtgqxLESayjkN07y aep0ADIWKz+Xy6lQOKv3GHlzwfiO5Hh/QeUbeSDYoDxt/XSND1dZW1O7h+FW6EzA1+ 5PU8Wpg0GKK9cB5sQlQstxXmk1XrcBNEkr0XZ11A= X-Originating-IP: [72.188.224.222] X-Mailer: Claws Mail 3.17.3 (GTK+ 2.24.32; x86_64-unknown-linux-gnu) Xref: news.gmane.org gmane.comp.sysutils.supervision.general:2485 Archived-At: Hi all, I think a cool addition to runit program sv and s6's s6-svc would be a command to send an arbitrary signal to the daemon being supervised. Let's say a -z was added as an arg to s6-svc or a "genericinterrupt" was added as an arg to sv. Now you could say: sv genericinterrupt SIGIO myspecialdaemon s6-svc -z SIGIO myspecialdaemon The supervisor already knows the PID of what's being supervised, so it would be an easy way to get an arbitrary signal into a daemon, for those daemons that have non-standard signal usage. SteveT -- Steve Litt January 2019 featured book: Troubleshooting: Just the Facts http://www.troubleshooters.com/tjust