From d909612e23d68b6e55b4c82d48a70cdad73845e5 Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Sat, 26 Feb 2005 04:12:05 +0000 Subject: Create rc.d startup files for spamd and close out open files. --- packages/spamd.xml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'packages') diff --git a/packages/spamd.xml b/packages/spamd.xml index a83c5430..98986966 100644 --- a/packages/spamd.xml +++ b/packages/spamd.xml @@ -105,6 +105,7 @@ foreach($config['installedpackages']['spamd-greylist']['config'] as $spamd) { fwrite($fd, $spamd['ip'] . "\n"); } + fclose($fd); } @@ -114,9 +115,14 @@ sync_package(); - mwexc("touch /var/db/spammer-whitelist"); + mwexc("touch /var/mail/whitelist.txt"); mwexec("/usr/libexec/spamd-setup &"); mwexec("/usr/libexec/spamlogd &"); + $fd = fopen("/usr/local/etc/rc.d/spamd","w"); + fwrite($fd, "/usr/libexec/spamd-setup &\n"); + fwrite($fd, "/usr/libexec/spamlogd &\n"); + fclose($fd); + mwexec("/usr/local/etc/rc.d/spamd"); -- cgit v1.2.3