From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.sysutils.supervision.general/2493 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Steve Litt Newsgroups: gmane.comp.sysutils.supervision.general Subject: Re: Generic interrupt command? Date: Sat, 2 Feb 2019 16:40:42 -0500 Message-ID: <20190202164042.20551e42@mydesk.domain.cxm> References: <20190201213620.68abc837@mydesk.domain.cxm> <20190202143014.77a5ac5f@mydesk.domain.cxm> <20190202210810.qckhzw4zgfxui6u3@cathexis.xen.prgmr.com> 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="21080"; mail-complaints-to="usenet@blaine.gmane.org" To: supervision@list.skarnet.org Original-X-From: supervision-return-2083-gcsg-supervision=m.gmane.org@list.skarnet.org Sat Feb 02 22:40:47 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 1gq31q-0005O4-24 for gcsg-supervision@m.gmane.org; Sat, 02 Feb 2019 22:40:46 +0100 Original-Received: (qmail 4983 invoked by uid 89); 2 Feb 2019 21:41:11 -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 4976 invoked from network); 2 Feb 2019 21:41:11 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; h=X-Originating-IP:Date:From:To:Subject:Message-ID:In-Reply-To:References:X-Mailer:MIME-Version:Content-Type:Content-Transfer-Encoding; s=default; d=troubleshooters.com; b=EschzIONmKcWS/EO9q3TWVEbyQWhfDBaJVbjaJazWhevx0WF9b0b6JPvvo7U8yXa4z2pqhF2z+PBpNTHIaSm0zzyDrY0Df1ApSzMdItzI/HMUzFD2/IrRXOBQuGWlmmj2tSon2lXtE00uj70crsXMObSElAJa26VM5DkfPASS3k=; DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/simple; d=troubleshooters.com; s=default; t=1549143643; bh=E1nDelDiCkJJcOndkbNacj4eD7o=; l=1195; h=X-Originating-IP:Date:From:To:Subject:Message-ID:In-Reply-To: References:X-Mailer:MIME-Version:Content-Type: Content-Transfer-Encoding; b=jnRdIYetDVUuh+Q3fqmvZscIDOG/EFqG8bNInzQ5bFgxjyxOKpCUyqifjlKel4JTK dfO7UY87x2mmvnF2YWOjCWVuxSGFcqGdpeSaecgVTrHjCPO7beyRjddH83ZIVjJdA0 Ij14xEZJ3UN8ILkZhxLDW4k8eBfG39vHZhTw2G28= X-Originating-IP: [72.188.224.222] In-Reply-To: <20190202210810.qckhzw4zgfxui6u3@cathexis.xen.prgmr.com> 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:2493 Archived-At: On Sat, 2 Feb 2019 21:08:10 +0000 Colin Booth wrote: > On Sat, Feb 02, 2019 at 02:30:14PM -0500, Steve Litt wrote: > > On Sat, 02 Feb 2019 09:07:31 +0000 > > "Laurent Bercot" wrote: > > > > ==================================================== > > kill -s SIGKILL `sv pid agetty-tty6` > > ==================================================== > > > > I don't know if the s6-svc command already has the equivalent of a > > hypothetical sv "pid" command, but if it doesn't, I imagine it > > would be easy to put in and very helpful to those forging > > shellscripts. > > > > By adding this little addition to s6-svc (and hopefully sv if Gerrit > > can scrape together the time), no hackiness would be added to s6 or > > runit: Any hackiness would be in the shellscript created by the > > programmer using s6 or runit. > > > As documented here: https://www.skarnet.org/software/s6/s6-svstat.html > > s6-svstat -p /path/to/service | xargs kill SIGNAL > Cool. That's all that's needed. SteveT -- Steve Litt January 2019 featured book: Troubleshooting: Just the Facts http://www.troubleshooters.com/tjust