Message ID | 20250823134609.12835-1-adolf.belka@ipfire.org |
---|---|
State | Accepted |
Commit | 97469fbdd20c7c47b9d1f2df6b57f60ccda16560 |
Headers |
Return-Path: <development+bounces-830-patchwork=ipfire.org@lists.ipfire.org> Received: from mail01.ipfire.org (mail01.haj.ipfire.org [172.28.1.202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519 server-signature ECDSA (secp384r1) server-digest SHA384 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mail01.haj.ipfire.org", Issuer "R11" (verified OK)) by web04.haj.ipfire.org (Postfix) with ESMTPS id 4c8JHX2t4Xz3wbG for <patchwork@web04.haj.ipfire.org>; Sat, 23 Aug 2025 13:46:16 +0000 (UTC) Received: from mail02.haj.ipfire.org (mail02.haj.ipfire.org [IPv6:2001:678:b28::201]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519) (Client CN "mail02.haj.ipfire.org", Issuer "E6" (verified OK)) by mail01.ipfire.org (Postfix) with ESMTPS id 4c8JHW6tFnz5NZ for <patchwork@ipfire.org>; Sat, 23 Aug 2025 13:46:15 +0000 (UTC) Authentication-Results: mail01.ipfire.org; dkim=pass header.d=ipfire.org header.s=202003ed25519 header.b=sjhD8kvh; dkim=pass header.d=ipfire.org header.s=202003rsa header.b=MSFhdto+; dmarc=pass (policy=reject) header.from=ipfire.org; spf=softfail (mail01.ipfire.org: 2001:678:b28::201 is neither permitted nor denied by domain of "development+bounces-830-patchwork=ipfire.org@lists.ipfire.org") smtp.mailfrom="development+bounces-830-patchwork=ipfire.org@lists.ipfire.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=ipfire.org; s=202003rsa; t=1755956775; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=/H2Lyk3DH5/0Axta5FIAwqx97gZ5wIHYBXNkCcT4YNQ=; b=SU9f2UV5BbMIm6C7XSH/sg4izGeqi/+IbBsgzf5qf+P5ghnXJ4nZmSbdt5gCtKWlJ6XWe9 NA/EbC19YeWSiAPh+SLopr0MyViY9l108BXu5NCBgKbXvqlEZjf7HRg4fcSCtR/BWFU7f2 JiC0wWknxRmX+FEaxpBpPnZnqT0QXzY53llogEpB/uqcfK7GIg4n3YjvMIWhpgwM82Viy3 3LtxpEvaMyEU4xlVdXBxgjwTmfOkUzv3IpBz3i/eRpbA0O2ngmnTadH+lWR6+Fm36tOHT6 wnJAbKY4Tew6bXgHbkFEHZB9M1xqSl2Yl/TL+K6ttKhwrGGOORc4XmLGn4WL5w== ARC-Authentication-Results: i=1; mail01.ipfire.org; dkim=pass header.d=ipfire.org header.s=202003ed25519 header.b=sjhD8kvh; dkim=pass header.d=ipfire.org header.s=202003rsa header.b=MSFhdto+; dmarc=pass (policy=reject) header.from=ipfire.org; spf=softfail (mail01.ipfire.org: 2001:678:b28::201 is neither permitted nor denied by domain of "development+bounces-830-patchwork=ipfire.org@lists.ipfire.org") smtp.mailfrom="development+bounces-830-patchwork=ipfire.org@lists.ipfire.org" ARC-Seal: i=1; s=202003rsa; d=ipfire.org; t=1755956775; a=rsa-sha256; cv=none; b=nlvrEBQK1r6gEQus0FORdSvsAmta1QB1VTLle+sU1K6Jl5ZUzvUOqQLheaPlFjBqrbQU2r vJOD0g2F4OvwIkmLb9D3vNSEzFGqv51i6hSCykIdKkhqDmIaZo886UOIvnTHJBYAY91M/D 6nN2bfwqM5P4x/FW3IuTCE83BQ39SIBuvEo5lJUSfLPBArlBIwzpXK1Qk5erB0Qxe+5kKK ZTZjN2BFiSvMfZMPIl8QM/BIaEDeVI1fehgJNx0RWITYt0Ze0Y/b4MYYk6DEAM8rZfSprX 20EZczFPJ1+Aa0MINwSKz4qm5DWkNJfNmp0/V98SEY+imA6w9HGFx4YniYPfyQ== Received: from mail02.haj.ipfire.org (localhost [IPv6:::1]) by mail02.haj.ipfire.org (Postfix) with ESMTP id 4c8JHW691dz2xh0 for <patchwork@ipfire.org>; Sat, 23 Aug 2025 13:46:15 +0000 (UTC) X-Original-To: development@lists.ipfire.org Received: from mail01.ipfire.org (mail01.haj.ipfire.org [IPv6:2001:678:b28::25]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519 server-signature ECDSA (secp384r1) server-digest SHA384 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mail01.haj.ipfire.org", Issuer "R11" (verified OK)) by mail02.haj.ipfire.org (Postfix) with ESMTPS id 4c8JHT0fhcz2xPP for <development@lists.ipfire.org>; Sat, 23 Aug 2025 13:46:13 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) (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 mail01.ipfire.org (Postfix) with ESMTPSA id 4c8JHR4Wxpzsm; Sat, 23 Aug 2025 13:46:11 +0000 (UTC) DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=ipfire.org; s=202003ed25519; t=1755956771; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=/H2Lyk3DH5/0Axta5FIAwqx97gZ5wIHYBXNkCcT4YNQ=; b=sjhD8kvhfD3AKzKFytnkcVF2N1o7CzhN7bFcCvBsOBBDqgBacUkjtijfqgE6R3/C5tzmJT VbmbgsWSNPKOkXDg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ipfire.org; s=202003rsa; t=1755956771; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=/H2Lyk3DH5/0Axta5FIAwqx97gZ5wIHYBXNkCcT4YNQ=; b=MSFhdto+ABVCntzLns7Zt69V9FHgQTZZIoSgIGaBUsUQYM0btMWKWPY1pVypVZtIOyYTMH YPr/bOtXG4xggmEK/wkRMPMwh55YMkmz1mtPtFoNKY7TiG+sejnIXZfVDNhkoKz3rcR5nq I7N/RPC3mZaZq2RtMMb8yjnXRUddFBA2VBM1ydayF411nTWLkzq2kv87r5nKgaq68UOjp5 k7m1MET8wJtC3DLjFe6y5nPuRx9Mt0wktGzvNJVlmbISJUgxIP9LE4GYHuvvpgz09M7U8G dMebA5Uhc5WfHSXqTUMeNmHa0VE7suTsVNuMrp3s8IsSSQm1cGhgE4ER2UU6Bw== From: Adolf Belka <adolf.belka@ipfire.org> To: development@lists.ipfire.org Cc: Adolf Belka <adolf.belka@ipfire.org> Subject: [PATCH] backup.pl: Restart openvpn daemons after restore. Date: Sat, 23 Aug 2025 15:46:09 +0200 Message-ID: <20250823134609.12835-1-adolf.belka@ipfire.org> Precedence: list List-Id: <development.lists.ipfire.org> List-Subscribe: <https://lists.ipfire.org/>, <mailto:development+subscribe@lists.ipfire.org?subject=subscribe> List-Unsubscribe: <https://lists.ipfire.org/>, <mailto:development+unsubscribe@lists.ipfire.org?subject=unsubscribe> List-Post: <mailto:development@lists.ipfire.org> List-Help: <mailto:development+help@lists.ipfire.org?subject=help> Sender: <development@lists.ipfire.org> Mail-Followup-To: <development@lists.ipfire.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Rspamd-Server: mail01.haj.ipfire.org X-Rspamd-Queue-Id: 4c8JHW6tFnz5NZ X-Rspamd-Action: no action X-Spamd-Result: default: False [-10.72 / 11.00]; BAYES_HAM(-2.99)[99.95%]; DWL_DNSWL_MED(-2.00)[ipfire.org:dkim]; FROM_INTERNAL_BULK_SENDERS(-2.00)[2001:678:b28::201]; R_DKIM_ALLOW(-1.63)[ipfire.org:s=202003ed25519,ipfire.org:s=202003rsa]; MID_CONTAINS_FROM(1.00)[]; NEURAL_HAM(-1.00)[-1.000]; DKIM_REPUTATION(-0.90)[-0.90035013797396]; DMARC_POLICY_ALLOW_WITH_FAILURES(-0.50)[]; R_MISSING_CHARSET(0.50)[]; RCVD_DKIM_ARC_DNSWL_MED(-0.50)[]; IP_REPUTATION_HAM(-0.21)[asn: 204867(-0.06), country: DE(0.00), ip: 2001:678:b28::(-0.15)]; RCVD_IN_DNSWL_MED(-0.20)[2001:678:b28::25:received]; MAILLIST(-0.18)[generic]; MIME_GOOD(-0.10)[text/plain]; HAS_LIST_UNSUB(-0.01)[]; MX_GOOD(-0.01)[]; RECEIVED_HELO_LOCALHOST(0.00)[]; ARC_SIGNED(0.00)[ipfire.org:s=202003rsa:i=1]; TO_DN_SOME(0.00)[]; FUZZY_RATELIMITED(0.00)[rspamd.com]; MIME_TRACE(0.00)[0:+]; FROM_HAS_DN(0.00)[]; ARC_NA(0.00)[]; TAGGED_FROM(0.00)[bounces-830-patchwork=ipfire.org]; RCVD_COUNT_THREE(0.00)[3]; ASN(0.00)[asn:204867, ipnet:2001:678:b28::/48, country:DE]; RCVD_VIA_SMTP_AUTH(0.00)[]; FORGED_SENDER_MAILLIST(0.00)[]; RCPT_COUNT_TWO(0.00)[2]; MISSING_XM_UA(0.00)[]; DMARC_POLICY_ALLOW(0.00)[ipfire.org,reject]; DKIM_TRACE(0.00)[ipfire.org:+]; RCVD_TLS_LAST(0.00)[]; FROM_NEQ_ENVFROM(0.00)[adolf.belka@ipfire.org,development@lists.ipfire.org]; R_SPF_SOFTFAIL(0.00)[~all:c] |
Series |
backup.pl: Restart openvpn daemons after restore.
|
|
Commit Message
Adolf Belka
23 Aug 2025, 1:46 p.m. UTC
- As the daemons are running when the restore is done then if the daemons are not restarted the running daemon stays with the previous config and not with the restored version. Tested-by: Adolf Belka <adolf.belka@ipfire.org> Signed-off-by: Adolf Belka <adolf.belka@ipfire.org> --- config/backup/backup.pl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
Comments
Thank you. I even remembered to merge it into master. > On 23 Aug 2025, at 14:46, Adolf Belka <adolf.belka@ipfire.org> wrote: > > - As the daemons are running when the restore is done then if the daemons are not > restarted the running daemon stays with the previous config and not with the restored > version. > > Tested-by: Adolf Belka <adolf.belka@ipfire.org> > Signed-off-by: Adolf Belka <adolf.belka@ipfire.org> > --- > config/backup/backup.pl | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) > > diff --git a/config/backup/backup.pl b/config/backup/backup.pl > index c9bc14355..e79f510c6 100644 > --- a/config/backup/backup.pl > +++ b/config/backup/backup.pl > @@ -349,8 +349,10 @@ restore_backup() { > rm /var/log/pakfire.log > fi > > - # Update the OpenVPN configuration > + # Update the OpenVPN configuration and restart the openvpn daemons > sudo -u nobody /srv/web/ipfire/cgi-bin/ovpnmain.cgi > + /etc/init.d/openvpn-n2n restart > + /etc/init.d/openvpn-rw restart > > return 0 > } > -- > 2.50.1 > >
diff --git a/config/backup/backup.pl b/config/backup/backup.pl index c9bc14355..e79f510c6 100644 --- a/config/backup/backup.pl +++ b/config/backup/backup.pl @@ -349,8 +349,10 @@ restore_backup() { rm /var/log/pakfire.log fi - # Update the OpenVPN configuration + # Update the OpenVPN configuration and restart the openvpn daemons sudo -u nobody /srv/web/ipfire/cgi-bin/ovpnmain.cgi + /etc/init.d/openvpn-n2n restart + /etc/init.d/openvpn-rw restart return 0 }