On Mon, Feb 4, 2019 at 10:09 PM John O'Meara <[email protected]> wrote: > On Sat, Feb 2, 2019, 4:40 PM Steve Litt <[email protected]> wrote: >> On Sat, 2 Feb 2019 21:08:10 +0000 Colin Booth <[email protected]> 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?
