ctdb-scripts: Fix tcp_tw_recycle existence check
authorRafael David Tinoco via samba-technical <samba-technical@lists.samba.org>
Mon, 3 Jun 2019 02:44:15 +0000 (23:44 -0300)
committerKarolin Seeger <kseeger@samba.org>
Fri, 21 Jun 2019 07:56:21 +0000 (07:56 +0000)
commit44b5168845e9be83e47b1ebe7cc75b849d12fad6
tree53384a2f0981b2c3f9160484afc378b5ddb65145
parent575739df9fd354e17eedf27aafa137118ba9879a
ctdb-scripts: Fix tcp_tw_recycle existence check

net.ipv4.tcp_tw_recycle has been removed from Linux 4.12 but, still,
makes sense to check its existence. Unfortunately, current check does
not test for the procfs file existence. This commit fixes the issue.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=13984

Signed-off-by: Rafael David Tinoco <rafaeldtinoco@ubuntu.com>
Reviewed-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
Autobuild-User(master): Andreas Schneider <asn@cryptomilk.org>
Autobuild-Date(master): Tue Jun  4 23:31:24 UTC 2019 on sn-devel-184

(cherry picked from commit 843fbb1207ee7ac84f3282974b66b9290d8da0ac)
ctdb/config/nfs-linux-kernel-callout