-
Notifications
You must be signed in to change notification settings - Fork 148
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
runner: don't allow multiple instances of daemon to run
until now there is no check to defend on multiple runs of daemon within the same node. This patch takes a non blocking lock on 'tcmu.lock' file, if it succeeds only then daemon is allowed to run, if there is already a lock on lock-file (taken by some other instance of tcmu-runner) we will exit. Signed-off-by: Prasanna Kumar Kalever <prasanna.kalever@redhat.com>
- Loading branch information
Prasanna Kumar Kalever
committed
May 16, 2018
1 parent
0d0cf7a
commit e42cd78
Showing
1 changed file
with
32 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters