From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.sysutils.supervision.general/2501 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Roger Pate Newsgroups: gmane.comp.sysutils.supervision.general Subject: Re: Generic interrupt command? Date: Mon, 4 Feb 2019 23:15:59 -0500 Message-ID: References: <20190201213620.68abc837@mydesk.domain.cxm> <20190202143014.77a5ac5f@mydesk.domain.cxm> <20190202210810.qckhzw4zgfxui6u3@cathexis.xen.prgmr.com> <20190202164042.20551e42@mydesk.domain.cxm> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="69433"; mail-complaints-to="usenet@blaine.gmane.org" Cc: Steve Litt , supervision@list.skarnet.org To: "John O'Meara" Original-X-From: supervision-return-2091-gcsg-supervision=m.gmane.org@list.skarnet.org Tue Feb 05 05:16:38 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 1gqsA0-000HyP-Rb for gcsg-supervision@m.gmane.org; Tue, 05 Feb 2019 05:16:36 +0100 Original-Received: (qmail 10732 invoked by uid 89); 5 Feb 2019 04:17:02 -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 10725 invoked from network); 5 Feb 2019 04:17:02 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=FK8xcppfqYu754J2ELKGjtGd+h1uFQTkckbGLkLRwI8=; b=ikswER3djNbV7vC7PIIQNmURYVUZM6xfImxkxyVDym4MCqrCf3WVzNRotL5xAMK0Ry xeq0DxvFNVpUw6tUT52aWT/3RkS6EMWCZ+d4ySFxRThxDGJJuGza2ueXpc6CirfXNXYS vwuTJcuX0exsbThxY6OIaTjDahUsSMdf+9f/bP3JAkUqEBTCGbsOI6ozDbsw7nyKBdFB vaWdnWShAN9cXLOCupROcwfze2G6AjaEG97rYMhZdOOFaBkX38G+IrL3U/v0mypaP6XJ mWHz3eMHvACPQ9HF89cLZG+2vgD4n7czsizoUaoglF1QQI10Sf4+p303BwsX7KEJFH0A Pi2A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=FK8xcppfqYu754J2ELKGjtGd+h1uFQTkckbGLkLRwI8=; b=MVaFrpxPbvrVP1AlUNJljs9ocvmbVjTLzvDPBoYJu+sIKtkhOkasH8dCcieo18gOfH GJWpZZL3ABigEUfTjEcP3yWmtBjPZ4f/PIHf+cueiCtHziOp0ANyyxMwFd9s4xfERrQ6 b/6ve/jrJKEeTdfPUksQemGOTozyZ4u5vEOQtA14xCxFOKUIi6prRKZyPW8D/sExgl6x 9YKq3lqtpQo3L4TeEPbHn9TUl2Bsp1juVxMTPyihw4DkC2VX7kixtp9CpLuZN/SOcp2R XUX4Eef3fpvcNq0i6jnZSXgBmtT0fkopWrNIz1koAKY87ZtVvBaTzOayC/CCcrlZiGcQ VXgw== X-Gm-Message-State: AHQUAuZucyvAEs3xUBXsY7ME7OzsK0LNrPqSxYWk/A13lHWpCQl/RzzP AKcisY6V6JPxysdnIGPWb60sJz9D+tTuw7y/Ynk1djyi X-Google-Smtp-Source: AHgI3Ibrh9KVUzwYii+D+OYISfBqfCQTFmrIZq5vAZlW7dDSCPqwyJXh/zeK2jMaNWP2oJY2e0M8njv+6SCRHH+jax0= X-Received: by 2002:adf:f149:: with SMTP id y9mr2020899wro.284.1549340195331; Mon, 04 Feb 2019 20:16:35 -0800 (PST) In-Reply-To: Xref: news.gmane.org gmane.comp.sysutils.supervision.general:2501 Archived-At: On Mon, Feb 4, 2019 at 10:09 PM John O'Meara wrote: > On Sat, Feb 2, 2019, 4:40 PM Steve Litt wrote: >> On Sat, 2 Feb 2019 21:08:10 +0000 Colin Booth 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?