On Tuesday 14 January 2025 14:18:51 Greenwich Mean Time Michael Orlitzky 
wrote:
> 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.

That's v helpful, Michael. Thanks.

Do you mind if I quote you in the bug report I send in?

-- 
Regards,
Peter.




Reply via email to