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
--
Colin Booth
Received on Sat Feb 02 2019 - 21:08:10 UTC