aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--packages/spamd.xml4
-rw-r--r--packages/spamd_whitelist.xml1
2 files changed, 4 insertions, 1 deletions
diff --git a/packages/spamd.xml b/packages/spamd.xml
index 78096548..aa29c88c 100644
--- a/packages/spamd.xml
+++ b/packages/spamd.xml
@@ -128,6 +128,7 @@
fwrite($fd, $spamd['ip'] . "\n");
}
fclose($fd);
+ system("/usr/local/etc/rc.d/spamd 2>/dev/null");
conf_mount_ro();
config_unlock();
}
@@ -144,7 +145,8 @@
system("/usr/libexec/spamlogd 2>/dev/null &");
$fd = fopen("/usr/local/etc/rc.d/spamd","w");
fwrite($fd, "#!/bin/sh\n\n");
- fwrite($fd, "/usr/libexec/spamd-setup &\n");
+ fwrite($fd, "/usr/bin/killall spamd-setup 2>/dev/null\n");
+ fwrite($fd, "/usr/local/sbin/spamd-setup &\n");
fwrite($fd, "/usr/libexec/spamlogd &\n");
fclose($fd);
system("chmod a+x /usr/local/etc/rc.d/spamd 2>/dev/null");
diff --git a/packages/spamd_whitelist.xml b/packages/spamd_whitelist.xml
index 7fd25352..aacb3aa8 100644
--- a/packages/spamd_whitelist.xml
+++ b/packages/spamd_whitelist.xml
@@ -61,6 +61,7 @@
fwrite($fd, $spamd['ip'] . "\n");
}
fclose($fd);
+ system("/usr/local/etc/rc.d/spamd 2>/dev/null");
conf_mount_ro();
config_unlock();
}