On 08/11/17 12:17, Илья Шипицин wrote:
2017-11-08 16:11 GMT+05:00 Gert Doering <[email protected]
<mailto:[email protected]>>:
Hi,
On Wed, Nov 08, 2017 at 04:05:01PM +0500, ???????? ?????????????? wrote:
> is there a way to make "TUN/TAP I/O operation aborted, restarting" fatal ?
Sure, but most certainly not on the -users list
there're so many various configuration options, I'm still not sure about many
of them
so, I was asking whether it is possible to do by config
nope; the code does this:
1064 /* Was TUN/TAP I/O operation aborted? */
1065 if (tuntap_abort(c->c2.buf.len))
1066 {
1067 register_signal(c, SIGHUP, "tun-abort");
1068 c->persist.restart_sleep_seconds = 10;
1069 msg(M_INFO, "TUN/TAP I/O operation aborted, restarting");
1070 perf_pop();
1071 return;
1072 }
which means we're restarting OpenVPN using SIGHUP ; currently there's no way to
override this.
If the code would have said
1067 register_signal(c, SIGUSR1, "tun-abort");
then you could use something like
-remap-usr1 SIGTERM
to get the desired behaviour.
HTH,
JJK
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Openvpn-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openvpn-users