From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.sysutils.supervision.general/2494 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Jonathan de Boyne Pollard Newsgroups: gmane.comp.sysutils.supervision.general Subject: Re: Generic interrupt command? Date: Sat, 2 Feb 2019 22:31:29 +0000 Message-ID: References: <20190201213620.68abc837@mydesk.domain.cxm> <20190202143014.77a5ac5f@mydesk.domain.cxm> <20190202210810.qckhzw4zgfxui6u3@cathexis.xen.prgmr.com> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="------------7E5CD37AA90E782A377C7819" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="242021"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:45.0) Gecko/20100101 Thunderbird/45.1.1 To: Supervision Original-X-From: supervision-return-2084-gcsg-supervision=m.gmane.org@list.skarnet.org Sat Feb 02 23:31:31 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 1gq3ox-0010pf-CD for gcsg-supervision@m.gmane.org; Sat, 02 Feb 2019 23:31:31 +0100 Original-Received: (qmail 5826 invoked by uid 89); 2 Feb 2019 22:31:57 -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 5819 invoked from network); 2 Feb 2019 22:31:57 -0000 X-Originating-IP: [86.10.101.211] X-Authenticated-User: J.deBoynePollard-newsgroups@NTLWorld.COM X-Spam: 0 X-Authority: v=2.3 cv=XubUx2N9 c=1 sm=1 tr=0 a=FQ5CjUvp3JFI4KFGyeqcZw==:117 a=FQ5CjUvp3JFI4KFGyeqcZw==:17 a=r77TgQKjGQsHNAKrUKIA:9 a=uj8X_y5MAAAA:8 a=jG3YmDwq0XEpZuvpf0MA:9 a=pILNOxqGKmIA:10 a=z2elh4tbOjwA:10 a=KdDOpvka4ZIA:10 a=p3oP0s-XAAAA:8 a=V7-nNgjwaoxuovpI5BwA:9 a=Ru3yusXA8r7f_og7:21 a=_W_S_7VecoQA:10 a=gp7W3T1CZUxA4ewt6LkN:22 a=Hqhy0f4T2U_FgdGXz6PX:22 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ntlworld.com; s=meg.feb2017; t=1549146689; bh=Z7X9WBhzw+YxyhtcL2spEfaVbqDDiSAoNP4m4Bigv3w=; h=Subject:To:References:From:Date:In-Reply-To; b=48dJrhWlLSYsGzoBMbeY/8pwM1EFrlrYnduRFQHiJ2A8OxYysWg6c30in3M2ERyhy AK85A+jyFv4zS3ItaYaUxi4oBQ6XPZldhCzcLpwF2p1XdaQSzmqAbZbCqx35a6F3Qi eicDfSF515bqyeb4gl5bSJ2LtRZb3zAaZ95Fd6XRQs7X1bZW11HKf4Hsw9O1lMW2yn Sp9VGW1U9ckZaUDmDhZrD+KG7mekMTjndhdLvfeUSUG/CTi4/A10io84RK0R6YPKC5 si1ylayoKXf8XqwpKqvDJXe/OIA9h1s48VfiiP8+yVTuw6ULIh3fY4BrBbXUJnJv/c G3EwMnC4HR3dQ== In-Reply-To: <20190202210810.qckhzw4zgfxui6u3@cathexis.xen.prgmr.com> X-CMAE-Envelope: MS4wfF2pXTwCIez84+t8Gl4QdBmfAGLrm1AKqWqBHlbaUuxy9bszTLOU9m33+lwOp5W0eZsY4FVMAE94aLgbkcXLKnwYFQWn7M++kvEvaNeFYI+P83/HiOn/ xpjKW1gSIW3KvVP1xZgrtJTpIuEc0DG7rxXitSQqOt8a54M+6N1FKAY9HpROardYmLTDEpL+3xToy6GJfEAZTyxAEeUWVea8fxJGSRRISCl7BfyBut+FXt0b Xref: news.gmane.org gmane.comp.sysutils.supervision.general:2494 Archived-At: --------------7E5CD37AA90E782A377C7819 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Colin Booth: > As documented here: https://www.skarnet.org/software/s6/s6-svstat.html > > s6-svstat -p /path/to/service | xargs kill SIGNAL > You can thank Jos Backus for similar functionality in the nosh toolset since 2013, with program-readable output that one can use existing tools to pull arbitrary fields from. % svshow --json /var/sv/* 2>/dev/null | jq '."/var/sv/bcron-sched".MainPID' 1861 % svshow --json /var/sv/* 2>/dev/null | jq '."/var/sv/bcron-sched".RunTimestamp' 4611686019976326000 % svshow --json /var/sv/* 2>/dev/null | jq '."/var/sv/bcron-sched".DaemontoolsEncoreState' "running" % svshow --json /var/sv/* 2>/dev/null | jq '."/var/sv/bcron-sched"."Wanted-By"' [ "/etc/service-bundles/targets/server" ] % --------------7E5CD37AA90E782A377C7819--