Re: Generic interrupt command?

From: Steve Litt <slitt_at_troubleshooters.com>
Date: Sat, 2 Feb 2019 16:40:42 -0500

On Sat, 2 Feb 2019 21:08:10 +0000
Colin Booth <colin_at_heliocat.net> 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" <ska-supervision_at_skarnet.org> 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
Received on Sat Feb 02 2019 - 21:40:42 UTC

This archive was generated by hypermail 2.3.0 : Sun May 09 2021 - 19:44:19 UTC