From patchwork Sat Mar 12 17:43:44 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paul B X-Patchwork-Id: 1604676 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: bilbo.ozlabs.org; dkim=pass (2048-bit key; secure) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=Y1emMX97; dkim=fail reason="unknown key version" header.d=smtpservice.net header.i=@smtpservice.net header.a=rsa-sha256 header.s=m6sda0.a1-4.dyn header.b=14E4Yk8A; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=none (no SPF record) smtp.mailfrom=lists.openwrt.org (client-ip=2607:7c80:54:e::133; helo=bombadil.infradead.org; envelope-from=openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org; receiver=) Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) (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 bilbo.ozlabs.org (Postfix) with ESMTPS id 4KG9Gn1NkJz9sGG for ; Sun, 13 Mar 2022 04:46:55 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=y6yRjpNIHzRh5E8MgKc50+FobOgg+CX2U8HHWLP22dU=; b=Y1emMX97BXuCuI XWjhpWjD/duGNMJ0cJHkyUJK2wNaikuDXIMk771d3cXGW44xtiKxcf7+SuuvZ2hmdnP6/wTa98bid Gvd4VPAdFIWtNlFByCf8bEIRTjQ1wiap/XWpMTyfGF09zL37pmqgaNnH3BT+uRoGKKM+X6TrRxAUv WG1erf9wK7YyP6k6E1dIJ6tM1vJNlF7cLGLIYPQDHqpO40sbXlJm5BmdxAVVEqGjPAMMh/qLg569Z m65E1BiMAtofD8WBWuKVjRJ8juM05j2f+iQMvbWvpZvjzsiN5pC/ZuR0HhLyJVc2ihn13TWG9Yu4H PKuCUkDHROuQ95nzbRMg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nT5mr-001gc3-Eb; Sat, 12 Mar 2022 17:44:17 +0000 Received: from a2i434.smtp2go.com ([103.47.205.178]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nT5mn-001gbW-Fz for openwrt-devel@lists.openwrt.org; Sat, 12 Mar 2022 17:44:15 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=smtpservice.net; s=m6sda0.a1-4.dyn; x=1647107944; h=Feedback-ID: X-Smtpcorp-Track:Message-Id:Date:Subject:To:From:Reply-To:Sender: List-Unsubscribe; bh=GN6JrSkFq4N7YGETJR4tmRL8b6cCElJasTxxm2l9XPE=; b=14E4Yk8A ylDKUioPxRA30sfawkLsnzJ5ePRNX9g2LppMdo3u5C3IIbM9iyeUB+HALmY41oZ3bGOKNwxxbkkXo wfswvuLFXb6tQ9YMTwHhtA4psldHi3+IasP7n4PFWXWISEV+flv1ALTlfcStl8jWoDhH3PQE/F+jS jbOuo53zdW7bXHQWZ1qIf9bUqrKlTa3NMO5T+1T8RkZaIw84c20yxAsT8TXDGKrzttXjbwXs/qZfv 4+HLYdMOjBT3loj6mr6LN3/sYjC7zeOcWgIa/Zk/9rNKecZzO9lxaaBG7sMM8yX5NlmvKOJXazemX tWlrjcsDxFpzeuYsSXlHL5KlwA==; Received: from [10.45.79.114] (helo=SmtpCorp) by smtpcorp.com with esmtpsa (TLS1.3:ECDHE_SECP256R1__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim 4.94.2-S2G) (envelope-from ) id 1nT5mY-pH9UW3-Md; Sat, 12 Mar 2022 17:43:58 +0000 Received: from [10.100.33.96] (helo=mail.blazebox.homeip.net) by smtpcorp.com with esmtpsa (TLS1.3:ECDHE_X25519__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim 4.94.2-S2G) (envelope-from ) id 1nT5mX-g2u8PV-Qr; Sat, 12 Mar 2022 17:43:57 +0000 Received: from blazebox.homeip.net (localhost [127.0.0.1]) by mail.blazebox.homeip.net (Postfix) with ESMTP id 35B2D64425B; Sat, 12 Mar 2022 12:43:55 -0500 (EST) X-Virus-Scanned: amavisd-new at blazebox.homeip.net Received: from mail.blazebox.homeip.net ([127.0.0.1]) by blazebox.homeip.net (mail.blazebox.homeip.net [127.0.0.1]) (amavisd-new, port 10024) with LMTP id y6mlLWvyqJ2P; Sat, 12 Mar 2022 12:43:51 -0500 (EST) Received: from blaze.homeip.net (unknown [IPv6:2001:470:1f07:a3a:74a3:34a2:43bd:bd52]) by mail.blazebox.homeip.net (Postfix) with ESMTP id 2CE2864423D; Sat, 12 Mar 2022 12:43:51 -0500 (EST) Received: by blaze.homeip.net (Postfix, from userid 4444) id 9AF472001E4A; Sat, 12 Mar 2022 12:43:44 -0500 (EST) From: Paul B To: openwrt-devel@lists.openwrt.org Cc: Lucian@blaze.homeip.net, Cristian@blaze.homeip.net, lucian.cristian@gmail.com Subject: [PATCH] uacme: start later in the boot process Date: Sat, 12 Mar 2022 12:43:44 -0500 Message-Id: <20220312174344.6551-1-plblaze@blazebox.homeip.net> X-Mailer: git-send-email 2.35.1 MIME-Version: 1.0 X-Smtpcorp-Track: 1nT5Xbg2I8eVQr.LdvfKj7DQpPUB Feedback-ID: 316702m:316702a3jAEqy:316702srI9N34IuD X-Report-Abuse: Please forward a copy of this message, including all headers, to X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220312_094413_872493_0A433C51 X-CRM114-Status: UNSURE ( 8.02 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -1.9 (-) X-Spam-Report: Spam detection software, running on the system "bombadil.infradead.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Currently the acme init script starts too early in the boot process and even with 5 seconds delay the script will, just silently exit. Due to network interfeces, which may be still inititialzing and n [...] Content analysis details: (-1.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -2.3 RCVD_IN_DNSWL_MED RBL: Sender listed at https://www.dnswl.org/, medium trust [103.47.205.178 listed in list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record -0.0 SPF_HELO_PASS SPF: HELO matches SPF record 0.2 HEADER_FROM_DIFFERENT_DOMAINS From and EnvelopeFrom 2nd level mail domains are different 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid 0.1 DKIM_INVALID DKIM or DK signature exists, but is not valid X-BeenThere: openwrt-devel@lists.openwrt.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: OpenWrt Development List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "openwrt-devel" Errors-To: openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org Currently the acme init script starts too early in the boot process and even with 5 seconds delay the script will, just silently exit. Due to network interfeces, which may be still inititialzing and not (yet) be available online `curl` will exit with a failure, it produces an error: ... daemon.err run-uacme[1668]: uacme: curl_post: POST http://r3.o.lencr.org failed: Error daemon.err run-uacme[1668]: uacme: curl_post: waiting 5 seconds before retrying ... Let's move the acme init sequence, later into the boot process to give it more time to properly function. Signed-off-by: Paul B --- net/uacme/files/acme.init | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/uacme/files/acme.init b/net/uacme/files/acme.init index f32a6ad18..db5923922 100644 --- a/net/uacme/files/acme.init +++ b/net/uacme/files/acme.init @@ -2,7 +2,7 @@ USE_PROCD=1 -START=50 +START=90 SCRIPT=/usr/share/uacme/run-uacme start_service()