I believe your solution will also remove a valid lockfile, ain't it? daRcmaTTeR wrote:
> 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. wooky -- -- shinjiteiru shinjirareru, korekara aruku kono michi wo! kimi ga iru yo, boku ga iru yo sore ijou nani mo iranai. umareta imi ,sagasu yori mo ima ikiteru koto kanjite, kotae yori mo, daiji na mono hitotsu hitotsu mitsuketeiku...
Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
