From 9bef238c01ef3d2e80523bf6e6cf97254b2612d6 Mon Sep 17 00:00:00 2001 From: Daniil Baturin Date: Thu, 8 May 2014 23:37:25 +0200 Subject: Bug #185: ensure nf_conntrack_netlink is loaded and unloaded properly. Patch by Kim Hagen. --- scripts/vyatta-update-conntrack-log.pl | 3 +++ 1 file changed, 3 insertions(+) (limited to 'scripts') diff --git a/scripts/vyatta-update-conntrack-log.pl b/scripts/vyatta-update-conntrack-log.pl index 0548762..92e720b 100644 --- a/scripts/vyatta-update-conntrack-log.pl +++ b/scripts/vyatta-update-conntrack-log.pl @@ -31,6 +31,7 @@ if ($config->isEmpty()) { Vyatta::Conntrack::Config::kill_daemon(); # delete the .lock and .log file getting generated `rm -f $pfile`; + `rmmod nf_conntrack_netlink`; exit 0; } @@ -39,9 +40,11 @@ if (defined ($cmd)) { # First stop the daemon and restart with config Vyatta::Conntrack::Config::kill_daemon(); `rm -f $pfile`; + `modprobe nf_conntrack_netlink`; system("$cmd"); if ($? >> 8) { print STDERR "Failed to start conntrack logging daemon"; + `rmmod nf_conntrack_netlink`; exit 1; } } -- cgit v1.2.3