On Mon, 10 Jun 2002, Richard Bonebrake wrote: > I am using Mandrake 8.2 as a server. I have postfix doing the mail and have > gnu_pop3d running as the pop3 server. If a user drops connection for some > reason while he is getting his mail, it will leave the lock file in place. > The lock file will never be removed. Is there a place to configure this to > be removed in say 10 or 15 minutes or is there a way to run some other > software to check for loss of connection and then clear the lock file. I am > new to Linux so any help would be greatly appreciated. Thanks! > > Richard D. Bonebrake > Asquith Internet > [EMAIL PROTECTED] >
Richard, probably the easiest thing you could do for this would be to use a small shell script to check for the existence of the lockfile, and if it does exist to simply remove it. ========================== #!/bin/sh filename=/var/path/to/filename.lock # test for lockfile if [ -e "$filename" ] rm -f $filename fi ========================== now, just chmod this little guy 755 and set a cron job to run twice an hour and that should take care of the problem of the lingering lockfile. -- Mark a.k.a. daRcmaTTeR ------------------ "If your wife told you NOT to do it there's probably a real good reason!" ------------------------------------------------------------------------- REGISTERED LINUX USER #186492 Penguinized since 1997
Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com