aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2006-12-23 01:54:04 +0000
committerScott Ullrich <sullrich@pfsense.org>2006-12-23 01:54:04 +0000
commitbba2cbbcce9aada4156e545e5f8a02500f7e9573 (patch)
tree88903b09067b6c38902f13003b467e648e7af719
parent8fcc3599723f48bc2942b293d458996a90765f59 (diff)
downloadpfsense-packages-bba2cbbcce9aada4156e545e5f8a02500f7e9573.tar.gz
pfsense-packages-bba2cbbcce9aada4156e545e5f8a02500f7e9573.tar.bz2
pfsense-packages-bba2cbbcce9aada4156e545e5f8a02500f7e9573.zip
* Kill spamd on deinstall
* Reload filter
-rw-r--r--packages/spamd.inc3
1 files changed, 3 insertions, 0 deletions
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