From bba2cbbcce9aada4156e545e5f8a02500f7e9573 Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Sat, 23 Dec 2006 01:54:04 +0000 Subject: * Kill spamd on deinstall * Reload filter --- packages/spamd.inc | 3 +++ 1 file changed, 3 insertions(+) (limited to 'packages') diff --git a/packages/spamd.inc b/packages/spamd.inc index 1bc2b451..aa572d86 100644 --- a/packages/spamd.inc +++ b/packages/spamd.inc @@ -138,6 +138,7 @@ function sync_package_spamd() { mwexec("ln -s /etc/spamd.conf /usr/local/etc/spamd.conf"); mwexec("/usr/local/etc/rc.d/spamd.sh stop"); mwexec("/usr/local/etc/rc.d/spamd.sh start"); + } function remove_spaces($string) { @@ -194,10 +195,12 @@ function custom_php_install_command() { function custom_php_deinstall_command() { global $config, $g; conf_mount_rw(); + exec("killall -9 spamd"); unlink_if_exists("/usr/local/pkg/pf/spamd_rules.php"); unlink_if_exists("/usr/local/www/spamd_rules.php"); unlink_if_exists("/usr/local/etc/rc.d/spamd.sh"); conf_mount_ro(); + filter_configure(); } ?> \ No newline at end of file -- cgit v1.2.3