public inbox for development@lists.ipfire.org
 help / color / mirror / Atom feed
From: Michael Tremer <michael.tremer@ipfire.org>
To: Adolf Belka <adolf.belka@ipfire.org>
Cc: development@lists.ipfire.org
Subject: Re: [PATCH] backup.pl: Restart openvpn daemons after restore.
Date: Sat, 23 Aug 2025 15:57:46 +0100	[thread overview]
Message-ID: <A8CEE1E5-4EF2-4016-88FF-B94EB008599F@ipfire.org> (raw)
In-Reply-To: <20250823134609.12835-1-adolf.belka@ipfire.org>

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
> 
> 



      reply	other threads:[~2025-08-23 14:57 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-08-23 13:46 Adolf Belka
2025-08-23 14:57 ` Michael Tremer [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=A8CEE1E5-4EF2-4016-88FF-B94EB008599F@ipfire.org \
    --to=michael.tremer@ipfire.org \
    --cc=adolf.belka@ipfire.org \
    --cc=development@lists.ipfire.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox