aboutsummaryrefslogtreecommitdiffstats
path: root/packages/spamd.xml
diff options
context:
space:
mode:
Diffstat (limited to 'packages/spamd.xml')
-rw-r--r--packages/spamd.xml4
1 files changed, 3 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");