mharc-users

Re: "web-archive" process too slow on my server!

2005-06-27 11:29:06
Thanks for your answer, I changed the $ON_MEMORY_MAX from 5 Mb to 250 Mb. I 
will see what it will do.
I also added my own lock file system for the "make readmail" command. I added 
my own script in the file: 
"/home/mailarch/bin/local/start_readmail.sh":
I changed the line with "/home/mailarch/bin/logcmd -log 
/home/mailarch/log/cron.log -- /home/mailarch/bin/read-mail" to:
# Readmail protected by a lock file
57 0,12 * * * /home/mailarch/bin/local/start_readmail.sh

The contents of the start_readmail.sh file is:
-------------- cut here --------------
#!/bin/sh                                                                       
                                      

LOCK_FILE=/tmp/archivum_readmail.lock

if [ -e $LOCK_FILE ] ; then
    echo "Archivum.info readmail lock file present.  Script cannot be run." 1>&2
    exit 1
fi

# Create lock file to lock script                                               
                                      
touch $LOCK_FILE

cd /home/mailarch/tmp
/home/mailarch/bin/logcmd -log /home/mailarch/log/cron.log -- 
/home/mailarch/bin/read-mail
cd -

# Remove lock file                                                              
                                      
rm -f $LOCK_FILE
-------------- cut here --------------

I posted it here because it could help other people if they have the same 
problem.

-- 
Best regards,
saf
http://Archivum.info/ - Administrator

---------------------------------------------------------------------
To sign-off this list, send email to majordomo(_at_)mhonarc(_dot_)org with the
message text UNSUBSCRIBE MHARC-USERS

<Prev in Thread] Current Thread [Next in Thread>