diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2005-02-26 04:12:05 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2005-02-26 04:12:05 +0000 |
commit | d909612e23d68b6e55b4c82d48a70cdad73845e5 (patch) | |
tree | 5446b1eaff098e6d3522add16792ee839031932a /packages | |
parent | 51e7a6a9e1382f2b14ab4a33329a96360eb48937 (diff) | |
download | pfsense-packages-d909612e23d68b6e55b4c82d48a70cdad73845e5.tar.gz pfsense-packages-d909612e23d68b6e55b4c82d48a70cdad73845e5.tar.bz2 pfsense-packages-d909612e23d68b6e55b4c82d48a70cdad73845e5.zip |
Create rc.d startup files for spamd and close out open files.
Diffstat (limited to 'packages')
-rw-r--r-- | packages/spamd.xml | 8 |
1 files changed, 7 insertions, 1 deletions
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); } </custom_php_command_before_form> <custom_php_resync_config_command> @@ -114,9 +115,14 @@ sync_package(); </custom_delete_php_command> <custom_php_install_command> - 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"); </custom_php_install_command> <custom_php_deinstall_command> </custom_php_deinstall_command> |