From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.sysutils.supervision.general/2862 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Steve Litt Newsgroups: gmane.comp.sysutils.supervision.general Subject: Re: runit SIGPWR support Date: Fri, 14 Feb 2020 07:45:20 -0500 Message-ID: <20200214074520.674d8c19@mydesk.domain.cxm> References: <1beb6e35-d4be-60b8-fc52-af666c4fffe3@gmx.com> <20200212215427.GG12551@cathexis.xen.prgmr.com> <7102151581677176@myt2-dd3598211d70.qloud-c.yandex.net> <2b39fcd3-2954-f4be-94cc-7b089e2e2e09@gmx.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="46775"; mail-complaints-to="usenet@ciao.gmane.io" To: supervision@list.skarnet.org Original-X-From: supervision-return-2451-gcsg-supervision=m.gmane-mx.org@list.skarnet.org Fri Feb 14 13:45:23 2020 Return-path: Envelope-to: gcsg-supervision@m.gmane-mx.org Original-Received: from alyss.skarnet.org ([95.142.172.232]) by ciao.gmane.io with smtp (Exim 4.92) (envelope-from ) id 1j2aLS-000C4f-Rg for gcsg-supervision@m.gmane-mx.org; Fri, 14 Feb 2020 13:45:22 +0100 Original-Received: (qmail 12777 invoked by uid 89); 14 Feb 2020 12:45:48 -0000 Mailing-List: contact supervision-help@list.skarnet.org; run by ezmlm Original-Sender: Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Original-Received: (qmail 12770 invoked from network); 14 Feb 2020 12:45:48 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; h=X-Originating-IP:Date:From:To:Subject:Message-ID:In-Reply-To:References:MIME-Version:Content-Type:Content-Transfer-Encoding; s=default; d=troubleshooters.com; b=ZHutjYROVQSFADuOBy8zMAJsAAQNeMkcDNE0EdvxBt9bHMIykitjfMixLmVA4L99QDWdaG5KgnW29gIW8wNe2nvlM1+F6oxqG+Ji2sRrA9UZsrXIZ24hL1qwHKkFDYM/E/rc2vehHQeCvhgzHXBZyACX5FsOD9C92hOQjN3T9XE=; DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/simple; d=troubleshooters.com; s=default; t=1581684321; bh=XMpbHMu5SfQIB/DGS1jg+PUL1lc=; l=1649; h=X-Originating-IP:Date:From:To:Subject:Message-ID:In-Reply-To: References:MIME-Version:Content-Type:Content-Transfer-Encoding; b=Fo7DPfRfb784ADPWQifURMQVH5czAQNcXwQTGFpMbZUrY4ARa8y9XLS81RXe0Jol6 vtI/icGzlsnr6T86sEECjLK+2ABK4qNPNtPdZIuOe4z+q3AbX9jdEtpDLyr89Yhu2I Z52GZwLXQxAFtPM76FsZ+9JwCxSjvVYEv+L6LLP4= X-Originating-IP: [72.188.224.222] In-Reply-To: <2b39fcd3-2954-f4be-94cc-7b089e2e2e09@gmx.com> Xref: news.gmane.io gmane.comp.sysutils.supervision.general:2862 Archived-At: In my computer usage, I usually need about 5 minutes to gracefully exit all my programs before powering down the computer, and I have a 40 minute UPS. If this is done at all, I'd suggest a configurable amount of time, with a visible countdown, telling the user to get his or her affairs in order, and also a way to cancel the shutdown. The only reason I see to have the computer automatically power down when signaled by the UPS is that I might not be home, but in that case waiting 5 minutes wouldn't matter. By the way, how would this be handled on a laptop, whose core usage includes unplugged usage? Maybe by monitoring when the battery gets too low? SteveT Steve Litt February 2020 featured book: Thriving in Tough Times http://www.troubleshooters.com/thrive On Fri, 14 Feb 2020 15:29:49 +0300 innerspacepilot wrote: > I would suggest it should be a graceful shutdown ( stopping all > daemons, syncing filesystems and stuff ) > > > On 14.02.2020 13:46, Jeff wrote: > > 12.02.2020, 22:54, "Colin Booth" : > >> I wasn't trying to be hostile, apologies if it came across that > >> way. As far as I know SIGPWR is a Linux-specific signal so > >> services that are aiming for portability will either need to have > >> special handling for that in the linux case or need to ignore it. > >> Ergo, runit (and all other POSIX-compliant inits) currently have > >> no special handling around SIGPWR as they don't understand what it > >> is. > > what should SIGPWR mean to a Linux init ? > > i would suggest: halt and power down the system ASAP. > > >