fboliva wrote
signal
The reason for exit or restart. Can be one of sigusr1, sighup, sigterm, sigint, inactive (controlled by –inactive option), ping-exit (controlled by –ping-exit option), ping-restart (controlled by –ping-restart option),connection-reset (triggered on TCP connection reset), error, or unknown (unknown signal).
All of which relate to the current running openvpn process not the remote peer.
fboliva wrote
Note that signal, in openvpn.log shows detailed info about user/client/remote peer disconnection: SIGTERM[soft,remote-exit] , SIGTERM[soft,inactive], SIGUSR1[soft,ping-restart], etc... so, yes, the variable shows exactly why the remote peer was disconnected.
They may "look" like
signal but it is not
signal the openvpn variable which relates to the local running process.
I am not saying what you want cannot be done (although, only so much of it can be done) but that is not how it *is* done. There may even be some internal code which is not exposed to the scripts .. but I don't know about that.
No matter what you believe, if you are proposing a change then you will need to discuss that with the devs.