From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (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 F1E701580E0 for ; Fri, 31 Jan 2025 02:54:19 +0000 (UTC) Received: from lists.gentoo.org (bobolink.gentoo.org [140.211.166.189]) (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) (Authenticated sender: relay-lists.gentoo.org@gentoo.org) by smtp.gentoo.org (Postfix) with ESMTPSA id DA748343191 for ; Fri, 31 Jan 2025 02:54:19 +0000 (UTC) Received: from bobolink.gentoo.org (localhost [127.0.0.1]) by bobolink.gentoo.org (Postfix) with ESMTP id 46AA511047D; Fri, 31 Jan 2025 02:53:13 +0000 (UTC) Received: from mail-pj1-x1033.google.com (mail-pj1-x1033.google.com [IPv6:2607:f8b0:4864:20::1033]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by bobolink.gentoo.org (Postfix) with ESMTPS id 158931103B6 for ; Fri, 31 Jan 2025 02:53:11 +0000 (UTC) Received: by mail-pj1-x1033.google.com with SMTP id 98e67ed59e1d1-2ef714374c0so2280439a91.0 for ; Thu, 30 Jan 2025 18:53:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1738291991; x=1738896791; darn=lists.gentoo.org; h=mime-version:message-id:date:user-agent:references:in-reply-to :subject:to:from:from:to:cc:subject:date:message-id:reply-to; bh=d1PZjjoD9iPdu8q67fe9wd+C6AhYP9gcq30g6xzDZKw=; b=W7lojdpWsjJg5Upmf1PfM8g7PdSgPF5GtL6weaDP1QlH0XzN2rHqa1pRHRBVx17jx/ W+lxq7BQp/9GoSj6rkAyGTVVhkRzi1uIknHdDB442jJKMkL4bVdSE3FiI3tfk4pMeJh7 +GE9ayi0M1gW1lx8kkrHcAyIemdwRbYx+ReQOYBnq2u3soc2Ip4XbhODmIZyigFP8FRF y6JgnwI5rJ4X8tBve0n1UURFBl3iQ3tCRR65V/RFoykTUWY4rRBFQ7+vjAXm2eDAEBPq 3UunJIHN/DC7ffjtw+JUqFLfIFPbSJFBmryNjY8Z75577ysgYvml/cx86Qit6Sbn5V/w dKjQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1738291991; x=1738896791; h=mime-version:message-id:date:user-agent:references:in-reply-to :subject:to:from:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=d1PZjjoD9iPdu8q67fe9wd+C6AhYP9gcq30g6xzDZKw=; b=UFZndFjEW/whdJg+0opcrCpdNpOG3fDXJUJUhRgRzos2jf22QVSg0bYcdpqSIQWz/3 EQoVT0az0wbCrpGK+GdFTvo/d6ga61Bp6HnYOtsc8CYiRdxCr0eZeSWF6k0mos0FkeAf jzRab/hJZh3hgvLpP4Pmj0HEEev/rQuXgFtUjiI19RF43WenmLlQA+vPrXr3ppV/EdOO 1kHUln2Q8k2V/vmy13syxfj92IYjtIH1iVrAfzBNCCu6yOJfqU5cEcmi2lyXBjXMl5iQ z9y88eZO91ZiTVNNoeowMesl0KfG+ScLTi8J6O0ogRagKUl09ZnJ6sw/TBYXLu5s4+1I JWVg== X-Gm-Message-State: AOJu0YxATzfMFF5DlwsVnUW8if4GVr/wfHeY1N0zh1ya4yaXEJVEs3Fb 7/lD7NZf9Gz49CXAcAkBjEhUm205D4F9mXT8l1wxKbi7PJfH3D7g39LvQg== X-Gm-Gg: ASbGnctObteFAvij7q9GYDiK31pRvuRzN8TOdY2DvUKihGh2DUb2OAlCtfJTVDhGAq5 caAZyCpUYLoZdTukeUzkK3obWF8tWerbesw7d16qSgadqYyXjfUgPkhKtbqsLDi9IgyNLWAHC89 JbmghXqcjqyrrF6/ghprBiEvosYDMVvL+R1S5fD5BH3Jb0bkHwwK+S+Avl4ajiC6kiRHF1xx23U Cn4SX1+2YJvqpphrWhrQp4U0SLO9TrfsaiYCOnMtMKgFQ3jkVL9/+8mscMHT71ttkcbzxf66wRP w+7hx2gEbmtNB74= X-Google-Smtp-Source: AGHT+IFJUSJR4GRt/D0zuZFDsIA6Dxm/3Cl16V1+dVV8XkfiRxs1Hx+++XfQoRAIUPn9SNIpmWqmgQ== X-Received: by 2002:a17:90b:2812:b0:2ee:5a82:433a with SMTP id 98e67ed59e1d1-2f84642e62bmr8586482a91.17.1738291991191; Thu, 30 Jan 2025 18:53:11 -0800 (PST) Received: from localhost ([101.119.119.120]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-2f848aa7255sm2438716a91.31.2025.01.30.18.53.10 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 Jan 2025 18:53:10 -0800 (PST) From: Alexis To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] Protecting init.d files from auto-update In-Reply-To: <6124699.lOV4Wx5bFT@cube> (Peter Humphrey's message of "Thu, 30 Jan 2025 15:47:34 +0000") References: <2207251.irdbgypaU6@cube> <2792044.mvXUDI8C0e@cube> <5874190.DvuYhMxLoT@cube> <6124699.lOV4Wx5bFT@cube> User-Agent: mu4e 1.12.7; emacs 29.4 Date: Fri, 31 Jan 2025 13:53:06 +1100 Message-ID: <871pwjofsd.fsf@gmail.com> 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-Type: text/plain; format=flowed X-Archives-Salt: 431fbe9c-d2d7-4396-8320-20e110745074 X-Archives-Hash: 43288968ffcfa7c123fd8cf243c20b34 Peter Humphrey 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.