rreport gagging on lockfile

Jean-Pierre A. Radley appl at jpr.com
Wed Feb 3 15:27:43 PST 2010


Kenneth Brody propounded (on Wed, Feb 03, 2010 at 04:48:57PM -0500):

| On 2/3/2010 4:19 PM, John Esak wrote: [...]
| > I vote with your colleague
| >
| > rm -f ${PFDIR}/filepro/filename/lockf*
| >
| > at the head of your script and you will never see this problem
| > again.  On to more agonizing problems.
| [...]
|
| Such as cleaning up the corruption caused by removing the lockfile
| while someone was actually doing something in the file that you
| shouldn't mess with?
|
| Blindly removing lockfiles because you "need" to do something "now" is
| just asking for trouble.

On all systems that I install, I have a command that reads:

	rm -fr	... \
		/appl/filepro/*/lockf* \
		/appl/*/filepro/*/lockf* \
		... 

It's located in /etc/rc.d/4/cleanup since it is meant to run only when
the computer is rebooted.

-- 
JP


More information about the Filepro-list mailing list