[IRCServices Coding] ircservices-chk script

Andrew Church achurch at achurch.org
Tue Nov 5 17:41:07 PST 2002


>	Because of this functionality, I choose not to restart services 
>using cron for fear of losing a .db file or 2.  While it's possible to 
>write a more elaborate cron script which would check for these .save files 
>and copy them into place in the aforementioned event before restarting 
>services, does version 5.0.* have a better way around this at all ? 

     Services 5.0 writes new data to a temporary file, which is then
renamed over the original file when writing completes successfully;
barring a power failure or OS bug, there should be no way for the *.db
files to become corrupted.

  --Andrew Church
    achurch at achurch.org
    http://achurch.org/