public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: Alexis <flexibeast@gmail.com>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] Protecting init.d files from auto-update
Date: Fri, 31 Jan 2025 13:53:06 +1100	[thread overview]
Message-ID: <871pwjofsd.fsf@gmail.com> (raw)
In-Reply-To: <6124699.lOV4Wx5bFT@cube> (Peter Humphrey's message of "Thu, 30 Jan 2025 15:47:34 +0000")

Peter Humphrey <peter@prh.myzen.co.uk> writes:

> However - stopping boinc still takes 60 seconds, with the 
> differencec
> that I don't now see the trail of dots to show me how much 
> longer I
> have to wait.
>
> Is that period hard-coded into the start/stop mechanism of 
> openrc?

i assume that might be a result of the default value for the 
$retry variable being "SIGTERM/60/SIGTERM/30/SIGKILL/30"; refer to 
line 48 of boinc.init, inside the env_check() function, which sets 
$retry to that value if it's not otherwise specified. The man page 
for openrc-run(8) says:

> retry    Retry schedule to use when stopping the daemon. It can
>          either be a timeout in seconds or multiple
>          signal/timeout pairs (like SIGTERM/5).

but doesn't explain what it means to have two different pairs for 
the same signal, as above. (Nor does 
https://github.com/OpenRC/openrc/blob/master/service-script-guide.md 
seem to have any relevant information in this regard.)

If you set `retry` in boinc.conf to, say, "SIGTERM/10/SIGKILL/20", 
for a 10-second timeout in response to a SIGTERM signal and a 
20-second timeout in response to a SIGKILL signal, does that 
reduce the stopping time? If so, to what duration? Hopefully 
setting different timeout periods for different signals will mean 
we can deduce what signals are being received from the stopping 
duration. 

Even if it does, it's a concern that the timeout limit is being 
reached; it suggests that the boinc service isn't shutting down 
gracefully in response to a SIGTERM, even after 60 seconds, 
resulting in it needing to be forcefully terminated.


Alexis.


  reply	other threads:[~2025-01-31  2:54 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-01-14 11:28 [gentoo-user] Protecting init.d files from auto-update Peter Humphrey
2025-01-14 12:01 ` Michael
2025-01-14 16:31   ` Peter Humphrey
2025-01-14 12:36 ` Arve Barsnes
2025-01-14 14:18 ` Michael Orlitzky
2025-01-14 16:28   ` Peter Humphrey
2025-01-14 16:53     ` Michael Orlitzky
2025-01-15 11:50       ` Peter Humphrey
2025-01-20 13:24         ` Peter Humphrey
2025-01-20 23:40           ` Alexis
2025-01-21 11:14             ` Peter Humphrey
2025-01-21 11:59               ` Alexis
2025-01-21 12:45                 ` Michael
2025-01-30 15:50                 ` Peter Humphrey
2025-01-30 15:47           ` Peter Humphrey
2025-01-31  2:53             ` Alexis [this message]
2025-01-31 14:24               ` Peter Humphrey
2025-01-31 14:34                 ` Peter Humphrey

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=871pwjofsd.fsf@gmail.com \
    --to=flexibeast@gmail.com \
    --cc=gentoo-user@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox