| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | Re: Check for and delete a stale lock file. |
Hi robert,
Robert Couture wrote to All:
RC> Hello!
RC>
RC> I am wondering what would be the easiest way to test for and delete a
RC> stale lock file.
RC>
RC> Every once and a while, hpt seems to be segfaulting leaving the hpt-lock
RC> file behind. I would like to test for this and if the file is past a
RC> certain age, delete the file so that mail processing can continue without
RC> intervention.
If it's a lockfile with a pid in it you can send a kill -0 to that pid. The
exitcode of kill will tell if that pid existed or not.
Else use find with a test on mtime with a certain age, a couple of hours or
so.
Greetings, Michiel Broek
Email: mbse{at}mbse.dds.nl
Fidonet: Michiel Broek at 2:280/2802
... Catholic girls, they never confess.
--- MBSE BBS v0.71.2 (GNU/Linux-i386)
* Origin: MBSE Linux BBS. Made in the Netherlands (2:280/2802)SEEN-BY: 633/267 270 @PATH: 280/2802 5003 379/1 106/2000 633/267 |
|
| SOURCE: echomail via fidonet.ozzmosis.com | |
Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.