* [PATCH] backup.pl: Restart openvpn daemons after restore.
@ 2025-08-23 13:46 Adolf Belka
2025-08-23 14:57 ` Michael Tremer
0 siblings, 1 reply; 2+ messages in thread
From: Adolf Belka @ 2025-08-23 13:46 UTC (permalink / raw)
To: development; +Cc: Adolf Belka
- 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
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] backup.pl: Restart openvpn daemons after restore.
2025-08-23 13:46 [PATCH] backup.pl: Restart openvpn daemons after restore Adolf Belka
@ 2025-08-23 14:57 ` Michael Tremer
0 siblings, 0 replies; 2+ messages in thread
From: Michael Tremer @ 2025-08-23 14:57 UTC (permalink / raw)
To: Adolf Belka; +Cc: development
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
>
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2025-08-23 14:57 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-08-23 13:46 [PATCH] backup.pl: Restart openvpn daemons after restore Adolf Belka
2025-08-23 14:57 ` Michael Tremer
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox