Re: runit don't restart service.

From: Jonathan de Boyne Pollard <J.deBoynePollard-newsgroups_at_NTLWorld.COM>
Date: Wed, 25 Jul 2018 09:35:46 +0100

Yoshinori Sato:

> root 10647 10592 0 7月13 ? 00:00:00 /opt/LifeKeeper/sbin/runsv lkcheck
>
> terminate service
> [root_at_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, as opposed to what you did here.

Use the runit manual in preference to the LifeKeeper manual here, too.
In 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.
Received on Wed Jul 25 2018 - 08:35:46 UTC

This archive was generated by hypermail 2.3.0 : Sun May 09 2021 - 19:44:19 UTC