From b065cd7244779ee32a7ba01e8d4a1d0f6551d04e Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Wed, 16 Feb 2005 18:11:17 +0000 Subject: Kill any running ntop processes before relaunching after configuration changes. --- packages/ntop/ntop.xml | 1 + 1 file changed, 1 insertion(+) (limited to 'packages/ntop') diff --git a/packages/ntop/ntop.xml b/packages/ntop/ntop.xml index eed18bb7..eaf25619 100644 --- a/packages/ntop/ntop.xml +++ b/packages/ntop/ntop.xml @@ -58,6 +58,7 @@ fwrite($fout, "/usr/local/bin/ntop " . $interfaces . " -u root -d --ipv4 -M\n\n"); fclose($fout); system("chmod 555 /usr/local/etc/rc.d/ntop.sh"); + system("killall ntop 2>/dev/null"); system("/usr/local/etc/rc.d/ntop.sh"); } else { echo "Passwords do not match!"; -- cgit v1.2.3