|
|||||||||||
|
Re: [AMaViS-user] Taking note of map changes while amavisd-new is running?
From: Mark Martinec <Mark.Martinec+amavis(at)ijs.si>
Date: Tue Jul 31 2007 - 04:07:39 EDT
> The scenario: As Gary noted, a change in a config file (and effect of any calls executed from config file(s)) will only take effect on start of a master process, i.e. on 'amavisd start' or 'amavisd reload'. The read_hash, read_array, read_text, they all read data into memory, just like direct assignements to variables in the rest of a config file. The only lookups that are dynamic in a sense that data may be changing on-the-fly and take effect immediately on a next lookup, are SQL and LDAP lookups. In principle a hash (i.e. an associative array) could be 'tie'-d to a database such as a Berkeley DB, or cdb, gdb ... (tie() is a Perl function). In this case Perl would hide such association from a program and the effect would be a dynamic lookup into a file-based database on each hash lookup by amavisd, changes to a database could take effect immediately (subject to possible caching). This is seldom used, mostly because explicit locking would be required for a reliable access to a changing database tied to a hash. Mark This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ AMaViS-user mailing list AMaViS-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/amavis-user AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3 AMaViS-HowTos:http://www.amavis.org/howto/ Received on Tue Jul 31 04:07:56 2007 This archive was generated by hypermail 2.1.8 : Thu Aug 09 2007 - 19:50:48 EDT |
||||||||||
|
|||||||||||