aboutsummaryrefslogtreecommitdiffstats
path: root/packages/spamd.inc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2006-03-20 04:26:05 +0000
committerScott Ullrich <sullrich@pfsense.org>2006-03-20 04:26:05 +0000
commit758cf47f9d3494daeb4c1fab6ad67b30216063a8 (patch)
tree8d4838c6d95b42847282a8e8164df3b3ac7e2f6c /packages/spamd.inc
parentc50750194eb86db794381c5b743c3355056bd933 (diff)
downloadpfsense-packages-758cf47f9d3494daeb4c1fab6ad67b30216063a8.tar.gz
pfsense-packages-758cf47f9d3494daeb4c1fab6ad67b30216063a8.tar.bz2
pfsense-packages-758cf47f9d3494daeb4c1fab6ad67b30216063a8.zip
Add spamd-setup to crontab and execute every 2 hours
Diffstat (limited to 'packages/spamd.inc')
-rw-r--r--packages/spamd.inc3
1 files changed, 3 insertions, 0 deletions
diff --git a/packages/spamd.inc b/packages/spamd.inc
index 6cfd8492..f31cf053 100644
--- a/packages/spamd.inc
+++ b/packages/spamd.inc
@@ -130,6 +130,9 @@ function sync_package_spamd() {
);
conf_mount_ro();
config_unlock();
+ $cronjob = "*/120 * * * * root /usr/bin/nice -n20 /usr/local/sbin/spamd-setup";
+ add_text_to_file("/etc/crontab", $cronjob);
+ mwexec("killall -HUP cron");
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");