From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail02.haj.ipfire.org (localhost [IPv6:::1]) by mail02.haj.ipfire.org (Postfix) with ESMTP id 4c8Kt82lZjz2xh0 for ; Sat, 23 Aug 2025 14:57:52 +0000 (UTC) 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) (Client CN "mail01.haj.ipfire.org", Issuer "R11" (verified OK)) by mail02.haj.ipfire.org (Postfix) with ESMTPS id 4c8Kt45ssZz2xQT for ; Sat, 23 Aug 2025 14:57:48 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail01.ipfire.org (Postfix) with ESMTPSA id 4c8Kt25tgDzmL; Sat, 23 Aug 2025 14:57:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ipfire.org; s=202003rsa; t=1755961067; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=70AR1fvnWNty0rfNBRoPin4XfYrEiCYyon5Sw5Czm68=; b=pC7ubCGAGWEWSKQJIBvp3kdjf8gvEN0p/BoSFZyD/slbjrSYACqYEjDaIWHanGF+HLkbio lkXnZUafkqrdQ1YsMYlZ2KZzRDb8IfFTP3qywXcTHjrF2MSLEMVqnu0Bn52c4XgU1cGVgP 3xwnO2Dhlp6Ki1PMVIwYCZJgcPJTHovVKoDPML5NmNb1PIRypJU1LwSniKourFqx01jiYm S9zQnh063fR0rZFuJaP8hW1O/x36zviUOUkZlgw0LZGv6QdenX8EV3WhXLmKim+PIcQcLA 3gJKaHOaqMhOhvl8eGrPpBrSsKceiz4dkSrqr8p/JAooUI8GMApjlOxaUutQhQ== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=ipfire.org; s=202003ed25519; t=1755961067; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=70AR1fvnWNty0rfNBRoPin4XfYrEiCYyon5Sw5Czm68=; b=9i/VHyDRwSKMHgKge5qWcrvjgkU+gE6ukAwxxs8U0hUR+CHOd5IWDEVKJxnCM0lyidL53e ZPaO6H2MnVU/IABQ== Content-Type: text/plain; charset=us-ascii Precedence: list List-Id: List-Subscribe: , List-Unsubscribe: , List-Post: List-Help: Sender: Mail-Followup-To: Mime-Version: 1.0 Subject: Re: [PATCH] backup.pl: Restart openvpn daemons after restore. From: Michael Tremer In-Reply-To: <20250823134609.12835-1-adolf.belka@ipfire.org> Date: Sat, 23 Aug 2025 15:57:46 +0100 Cc: development@lists.ipfire.org Content-Transfer-Encoding: quoted-printable Message-Id: References: <20250823134609.12835-1-adolf.belka@ipfire.org> To: Adolf Belka Thank you. I even remembered to merge it into master. > On 23 Aug 2025, at 14:46, Adolf Belka wrote: >=20 > - 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. >=20 > Tested-by: Adolf Belka > Signed-off-by: Adolf Belka > --- > config/backup/backup.pl | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) >=20 > 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 >=20 > - # 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 >=20 > return 0 > } > --=20 > 2.50.1 >=20 >=20