Ben Rosengart writes: > On Thu, Jul 18, 2002 at 05:03:26PM -0400, Sam Varshavchik wrote: >> >> That's fine. A small change of plans: you're not going to run makeuserdb >> by hand. You'll run a shell script that creates a soft link from >> /etc/courier to /export/B before running makeuserdb once, then creates a >> soft link from /etc/courier to /export/C and runs makeuserdb again. > > Oh no I won't. What happens when both databases are being updated at > the same time? You want the shell wrapper for makeuserdb to include > locking too? All to avoid adding five lines to makeuserdb!
There are thousands of different systems out there that are configured in a thousand different ways. It's not feasible to add five lines of code for each one of them, in order to accomodate each system's peculiarities. Actually, there is a tiny locking wrapper in Courier that you can use. dotlock -f /etc/courier/userdb.lock /bin/sh -c 'ln -fs /export/foo /etc/courier && makeuserdb' There you go. -- Sam ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ courier-users mailing list [EMAIL PROTECTED] Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users
