Uses a lock file instead than a pid file.

It's more appropriate for a not daemon.
This commit is contained in:
Andrea Mazzoleni 2013-06-18 21:06:31 +02:00
parent bc2a837953
commit fceaa8a4cf
7 changed files with 46 additions and 70 deletions

View file

@ -9,9 +9,9 @@ SnapRAID HISTORY
* Added RAID5/RAID6 mmx and sse2 implementations with unrolling by 4.
They are a little faster than the previous unroll by 2.
* Added a hash seed to make harder intentional collision attacks.
* Added a pid file to avoid multiple running instances on the same array.
The file is named as the first content file adding the .pid extension.
There is also the undocumented --test-skip-pid to avoid to check it.
* Added a lock file to avoid multiple running instances on the same array.
The file is named as parity file adding the .lock extension.
There is also the undocumented --test-skip-lock to avoid to check it.
3.1 2013/5
==========