From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.sysutils.supervision.general/2396 Path: news.gmane.org!.POSTED!not-for-mail From: Yoshinori Sato Newsgroups: gmane.comp.sysutils.supervision.general Subject: Re: runit don't restart service. Date: Wed, 25 Jul 2018 17:53:04 +0900 Message-ID: References: <487edab4-cee2-d3f6-08bc-b2535ca891f7@NTLWorld.COM> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1532508681 13366 195.159.176.226 (25 Jul 2018 08:51:21 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 25 Jul 2018 08:51:21 +0000 (UTC) Cc: supervision@list.skarnet.org To: Jonathan de Boyne Pollard Original-X-From: supervision-return-1987-gcsg-supervision=m.gmane.org@list.skarnet.org Wed Jul 25 10:51:17 2018 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.84_2) (envelope-from ) id 1fiFVr-0003L7-Bi for gcsg-supervision@m.gmane.org; Wed, 25 Jul 2018 10:51:15 +0200 Original-Received: (qmail 12792 invoked by uid 89); 25 Jul 2018 08:53:52 -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 12785 invoked from network); 25 Jul 2018 08:53:52 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sios-com.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=ONKJvdR9/ycWtOa55mZXvkif4LBAqwfpvV6KkxlthAQ=; b=NLy0opRIzf+E36LwsydkQf0XYIWqHaHjy5MMGj+RkbmAVZPqCRBHBqO2lZ5P/8Ef++ +PkP6bnesr9+hzawYKW0xkRBCVgJvqJXibi0JKEfdfGPPGo7tuBI+2jc88yEvuVeDJDh s4U5VHkWVyGUJez+jb3pxDFl7WlF2zawD9sRD1JKKcvE3qMqaVHUk0JkejBPbls5HPsw iLW4GXK71FbvDlRKrRdBTNNolhMZtU1SaNDf7YKo3cT/xH+1GMZ3TM6mOZhCng3wfcwM 9pfTN7kL5byvjTyyOtBeu35vgdjsjqjKcbbTrnYCE64gP12zIL5abMOFM3bwDzgmEubs XIKw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=ONKJvdR9/ycWtOa55mZXvkif4LBAqwfpvV6KkxlthAQ=; b=q6+2OO9bxak7jTk/+aUwxWP1WaHZ8oEnFRsZk1P8wIwHnc/NSvAQT7kaSCYPlFDYob jg2m5siLmbSNC4h1S0HTXtjPb4mt+wKO6lD+bS9SHM00Omu0ypDRCqC5/PG5H1esbOPD 4V7POBjbkdSKF3hk+lt2Jnsuo+UMalaagx+9LD9QyM+TqOZc7lnS+A3kPDmxt2d0Ygrr 9nygppVjq9u4LRSVAQR/CUJEiw25CEmbS9uz/Pz1x+/zMmK1agziRB1+KIzdp/3+NJK3 0BflcyKDbGlqejPI1U/uBsU5+DNh9Ih8yJPYNamogR+6wXQdJ+boSWpPkEHfOfod1iWc UyxQ== X-Gm-Message-State: AOUpUlEPO97ucRvcM4mXhHDvN3GmQott0uvzt7K0/jbXRHNCE5482CmU X742KyOXqgnRWC3jshIVmeiBqSiUAQ2P2SHDK0kPtw== X-Google-Smtp-Source: AAOMgpehK5HT69s8X0oXQ2UYeLA87Rg9q6/yuf/nfYkKfgU+hrkynxpB5IWcPSOTNjaK78hsKf0pxVD0J6kip6JK6UE= X-Received: by 2002:aca:b1c1:: with SMTP id a184-v6mr2671008oif.182.1532508804861; Wed, 25 Jul 2018 01:53:24 -0700 (PDT) In-Reply-To: <487edab4-cee2-d3f6-08bc-b2535ca891f7@NTLWorld.COM> Xref: news.gmane.org gmane.comp.sysutils.supervision.general:2396 Archived-At: OK. I understood it. I will try it again. Thanks. 2018-07-25 17:35 GMT+09:00 Jonathan de Boyne Pollard : > Yoshinori Sato: > >> root 10647 10592 0 7=E6=9C=8813 ? 00:00:00 /opt/LifeKeeper/sbin/runsv lk= check >> >> terminate service >> [root@nodeA ec2-user]# kill 10647 12521 >> > That is not terminating a service. That is terminating the service > supervision subsystem. If you kill the process that actually does the > restarting, you really should not expect that process to then restart > anything. The behaviour of runsv in response to SIGTERM is documented in > its manual; as are the ways to properly tell it to terminate a service, a= s > opposed to what you did here. > > Use the runit manual in preference to the LifeKeeper manual here, too. I= n > particular learn the use of runit commands like > > # /opt/LifeKeeper/sbin/sv status /opt/LifeKeeper/etc/service/* > > rather than the clumsy and error-prone grepping of the process list that = is > given in the LifeKeeper manual. >