From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 9CE3E15813A for ; Tue, 14 Jan 2025 16:28:49 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 29817E082B; Tue, 14 Jan 2025 16:28:43 +0000 (UTC) Received: from smarthost01a.sbp.mail.zen.net.uk (smarthost01a.sbp.mail.zen.net.uk [212.23.1.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (prime256v1) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id A9ED5E0819 for ; Tue, 14 Jan 2025 16:28:42 +0000 (UTC) Received: from [82.69.80.10] (helo=cube.localnet) by smarthost01a.sbp.mail.zen.net.uk with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.95) (envelope-from ) id 1tXjmP-004gT8-RT for gentoo-user@lists.gentoo.org; Tue, 14 Jan 2025 16:28:41 +0000 From: Peter Humphrey To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] Protecting init.d files from auto-update Date: Tue, 14 Jan 2025 16:28:40 +0000 Message-ID: <4968442.GXAFRqVoOG@cube> In-Reply-To: References: <2207251.irdbgypaU6@cube> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="utf-8" X-Originating-smarthost01a-IP: [82.69.80.10] Feedback-ID: 82.69.80.10 X-Archives-Salt: c88303a7-617c-434c-8acc-fe5850ee46fc X-Archives-Hash: addb56ff568fe02c87cc1967a24a7f55 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.