On Tue, 2025-01-14 at 11:28 +0000, Peter Humphrey wrote:
> Greetings,
>
> How can I prevent portage from auto-updating /etc/init.d/boinc?
>
In this case the init script is using a custom variable for the
timeout, and setting that variable unconditionally:
stop() {
local stop_timeout="SIGTERM/60/SIGTERM/30/SIGKILL/30"
...
}
What would be much nicer is if it
1. Used the standard $retry variable for this (man openrc-run)
2. Set $retry only if it's unset
Then you could simply provide your own $retry in boinc.conf. Going a
bit further, it could move the env_check into stop_pre(), and use
$pidfile instead of the custom $BOINC_PIDFILE. That would make the
entire stop() function redundant.