Project

General

Profile

Actions

Feature #11016

closed

Openvpn remove "status" file after service close

Added by Todor K about 4 years ago. Updated about 4 years ago.

Status:
Rejected
Priority:
Normal
Assignee:
-
Category:
OpenVPN
Target version:
-
Start date:
10/30/2020
Due date:
% Done:

0%

Estimated time:
1.00 h
Plus Target Version:
Release Notes:

Description

I have "status" file option added to openvpn "custom options" like so:

status /tmp/openvpn-status.txt

I use it to pull statistics for connected clients.

If I perform CARP failover, so that openvpn stops on primary node and starts on the secondary node, the status file on the first node stays and all statistics pulled from it are wrong.
The file should be deleted when the service exit. But since that should be done by openvpn itself, I propose to set default value for status file and take care of it via openvpn service up/down scripts.

Actions

Also available in: Atom PDF