From 025148c245bd2b471b28c781b8d95c2133497ff5 Mon Sep 17 00:00:00 2001 From: randomshell Date: Sun, 3 May 2020 13:26:37 +0000 Subject: [PATCH] Use openvpn status path from systemd service The new systemd service at `/usr/lib/systemd/system/openvpn-server@.service` that comes with openvpn 2.4 includes the status option in `ExecStart=/usr/sbin/openvpn --status %t/openvpn-server/status-%i.log --status-version 2 --suppress-timestamps --config %i.conf` Using this default allows to have multiple servers with their own status files and all in the same log directory. Example `/run/openvpn-server/status-server.log` `/run/openvpn-server/status-server2.log` --- openvpn-install.sh | 1 - 1 file changed, 1 deletion(-) diff --git a/openvpn-install.sh b/openvpn-install.sh index 34f54d0..818fe3d 100644 --- a/openvpn-install.sh +++ b/openvpn-install.sh @@ -310,7 +310,6 @@ user nobody group $group_name persist-key persist-tun -status openvpn-status.log verb 3 crl-verify crl.pem" >> /etc/openvpn/server/server.conf if [[ "$protocol" = "udp" ]]; then