From: Roger Pate <rogerpate@gmail.com>
To: "John O'Meara" <john.fr.omeara@gmail.com>
Cc: Steve Litt <slitt@troubleshooters.com>, supervision@list.skarnet.org
Subject: Re: Generic interrupt command?
Date: Mon, 4 Feb 2019 23:15:59 -0500 [thread overview]
Message-ID: <CADTH-ov_LtY6ZG2nM6wx=BkeZ0uVBTFESZc6bOz3-Z9eOKy0Mw@mail.gmail.com> (raw)
In-Reply-To: <CAPCpfp-F4nuNJ8fwQ==eGzQdQ9H2+qbWNg2M1X94bLbb6UKu5Q@mail.gmail.com>
On Mon, Feb 4, 2019 at 10:09 PM John O'Meara <john.fr.omeara@gmail.com> wrote:
> On Sat, Feb 2, 2019, 4:40 PM Steve Litt <slitt@troubleshooters.com> wrote:
>> On Sat, 2 Feb 2019 21:08:10 +0000 Colin Booth <colin@heliocat.net> wrote:
>>> s6-svstat -p /path/to/service | xargs kill SIGNAL
>>
>> Cool. That's all that's needed.
>
> Be careful, though. If the service is down, kill will use -1 for the PID,
> and will probably signal everything in your system except PID 1.
pid="$(s6-svstat -p /path/to/service)" && kill SIGNAL "$pid"
# avoid gratuitous xargs?
next prev parent reply other threads:[~2019-02-05 4:15 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-02-02 2:36 Steve Litt
2019-02-02 9:07 ` Laurent Bercot
2019-02-02 19:30 ` Steve Litt
2019-02-02 21:08 ` Colin Booth
2019-02-02 21:40 ` Steve Litt
2019-02-05 3:09 ` John O'Meara
2019-02-05 4:15 ` Roger Pate [this message]
2019-02-05 7:20 ` Laurent Bercot
2019-02-05 14:16 ` John O'Meara
2019-02-05 19:30 ` Laurent Bercot
2019-02-10 4:14 ` John O'Meara
2019-02-10 11:41 ` Laurent Bercot
2019-02-02 22:31 ` Jonathan de Boyne Pollard
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CADTH-ov_LtY6ZG2nM6wx=BkeZ0uVBTFESZc6bOz3-Z9eOKy0Mw@mail.gmail.com' \
--to=rogerpate@gmail.com \
--cc=john.fr.omeara@gmail.com \
--cc=slitt@troubleshooters.com \
--cc=supervision@list.skarnet.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).