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 4c8JHX4WMgz2xh0 for ; Sat, 23 Aug 2025 13:46:16 +0000 (UTC) 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 ; 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 To: development@lists.ipfire.org Cc: Adolf Belka 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: List-Subscribe: , List-Unsubscribe: , List-Post: List-Help: Sender: Mail-Followup-To: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit - 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 Signed-off-by: Adolf Belka --- 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