Received: from mail-wm1-f51.google.com (mail-wm1-f51.google.com [209.85.128.51]) by nld3-dev1.alpinelinux.org (Postfix) with ESMTPS id 90826782C3D for ; Fri, 6 Mar 2020 14:34:56 +0000 (UTC) Received: by mail-wm1-f51.google.com with SMTP id 6so2669051wmi.5 for ; Fri, 06 Mar 2020 06:34:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=90heJzHDRg5CKkHvGsDOVUpG6KVIplPvS0yM+o0uZL4=; b=jXv/Bsz+mUamUhzU4vN4hRtiHJf+La/r1F6LOLWz1VBEDJaey+X8TwohAkADGuYKqK U+LXoHIxD31bjpumvQ1VF5C3n4BhB9auX/OXg4dxmIdDUQylHwjMEiGmj+ZYPFtaQvoV q0uyfFhT9nUcA4YPDxWTiE619koTbIYS0fI6uTCCjpP6Sazko2QUg84f2aJ3C2Fkbm/S XB5U/vKXM8YzFJU5IF2dYsxNPCQ0D4h97vmVwQiiG507RFiEZM0JaCCBx52f6EFjyv8f tBkimMPc/TzN9eCqEENiLveOS6XBSlcLPvg1g/LqTNKddxDlyLL+8YgbjZ2O2EUoHxgb jKoQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=90heJzHDRg5CKkHvGsDOVUpG6KVIplPvS0yM+o0uZL4=; b=RPaIXuUp1CMETPTIruy1Z5XNDUX6ZBuQIXziQe/0B4nzh1LQ0Jwl1Oo0hLo9KoEtCP Eif7XqWej7epg3OzqWxuVmRdM+tot/UsT1j8Pj8kgsA2tPxGK/Cl3RCajJT+vzWg6qzj hxL1VAuCwhVof0QHPpEQEKhikX5astWA1lQIFXPhSYnZaD7015qb+AhviYeDc4nIP0HX mSo2qWLpmAH3eEZZwpQEaGFCXD6BK3n0wkJYF/a6D3xJ8ljtyNrBE1/2u8pD5IHcGQ8J 5dSuvsdVopDJdv13o9U3l01XQ95mrhbzPiYpX8qBuFBDUO6o2OzUhMx2XCc+qyc77B8G eaAg== X-Gm-Message-State: ANhLgQ25jBUj67+BnRcTtcwchnNt2I0yImToCp/Mh71S4AvpQp/WbgRw pd5DSfdfR8G6GXHms/Vr/r5Hw0JFeJhIRw== X-Google-Smtp-Source: ADFU+vtTAKj5uRgbmxqhzfxLYYXVeSID/pa9URlO409Vjx5ppQ4fIwnuxDirv2zXDmHIazwnoGYD7A== X-Received: by 2002:a1c:155:: with SMTP id 82mr4099886wmb.99.1583505294328; Fri, 06 Mar 2020 06:34:54 -0800 (PST) Received: from SASSOS-VM1.localdomain ([94.126.8.166]) by smtp.gmail.com with ESMTPSA id c23sm11925217wme.39.2020.03.06.06.34.53 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 06 Mar 2020 06:34:53 -0800 (PST) From: Stefano Sasso To: alpine-aports@lists.alpinelinux.org Cc: Stefano Sasso Subject: [PATCH] main/openvpn: Add instance name to OpenVPN --daemon param Date: Fri, 6 Mar 2020 15:34:46 +0100 Message-Id: <1583505286-12723-1-git-send-email-stesasso@gmail.com> X-Mailer: git-send-email 1.8.3.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