~alpine/aports

This thread contains a patchset. You're looking at the original emails, but you may wish to use the patch review UI. Review patch
1

[PATCH] main/openvpn: Add instance name to OpenVPN --daemon param

Stefano Sasso <stesasso@gmail.com>
Details
Message ID
<1583505286-12723-1-git-send-email-stesasso@gmail.com>
DKIM signature
missing
Download raw message
Patch: +1 -1
The --daemon OpenVPN params also controls the tag OpenVPN uses to ship
logs to syslog. If multiple OpenVPN instances are used, the user may
want to apply syslog filters, to have different log files for the
different instances.
If you specify an additional --daemon option in the config file, it will
be ignored, since the one on the command line is preferred.
---
main/openvpn/openvpn.initd | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/main/openvpn/openvpn.initd b/main/openvpn/openvpn.initd
index 8c11106..085ee5e 100644
--- a/main/openvpn/openvpn.initd
+++ b/main/openvpn/openvpn.initd
@@ -22,7 +22,7 @@ instance_name=${RC_SVCNAME#*.}
pidfile="/run/$RC_SVCNAME.pid"
command="/usr/sbin/openvpn"
command_args="
	--daemon
	--daemon $instance_name
	--config $cfgfile
	--writepid $pidfile
	--setenv RC_SVCNAME $RC_SVCNAME
-- 
1.8.3.1
Details
Message ID
<20200309192649.GA1380825@alpha>
In-Reply-To
<1583505286-12723-1-git-send-email-stesasso@gmail.com> (view parent)
DKIM signature
missing
Download raw message
On Fri, Mar 06, 2020 at 03:34:46PM +0100, Stefano Sasso wrote:
> The --daemon OpenVPN params also controls the tag OpenVPN uses to ship
> logs to syslog. If multiple OpenVPN instances are used, the user may
> want to apply syslog filters, to have different log files for the
> different instances.
> If you specify an additional --daemon option in the config file, it will
> be ignored, since the one on the command line is preferred.
> ---
>  main/openvpn/openvpn.initd | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/main/openvpn/openvpn.initd b/main/openvpn/openvpn.initd
> index 8c11106..085ee5e 100644
> --- a/main/openvpn/openvpn.initd
> +++ b/main/openvpn/openvpn.initd
> @@ -22,7 +22,7 @@ instance_name=${RC_SVCNAME#*.}
>  pidfile="/run/$RC_SVCNAME.pid"
>  command="/usr/sbin/openvpn"
>  command_args="
> -	--daemon
> +	--daemon $instance_name
>  	--config $cfgfile
>  	--writepid $pidfile
>  	--setenv RC_SVCNAME $RC_SVCNAME
> -- 
> 1.8.3.1

This has been applied. Note that you forgot to bump the pkgrel and fix
the checksums.
Reply to thread Export thread (mbox)