summaryrefslogtreecommitdiff
path: root/scripts/vyatta-update-conntrack-log.pl
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/vyatta-update-conntrack-log.pl')
-rw-r--r--scripts/vyatta-update-conntrack-log.pl3
1 files changed, 3 insertions, 0 deletions
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;
}
}