diff options
author | Prasanna Kumar Kalever <prasanna.kalever@redhat.com> | 2017-02-21 00:06:49 +0530 |
---|---|---|
committer | Prasanna Kumar Kalever <prasanna.kalever@redhat.com> | 2017-02-21 15:56:52 +0530 |
commit | c1c22333819f744287fb78fb317ff70fa82beab8 (patch) | |
tree | 25502a424c5b23cd96595fb9c3dc490f50de78cd /tests/basic.t | |
parent | b160d10dbf9c46fec60c4fa86b03dc9d6661feb4 (diff) |
lockfile: 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 'gluster-blockd.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 gluster-blockd)
we will exit.
This patch also renames GB_UNIX_ADDRESS from gluster-block.socket to
gluster-blockd.socket, as that makes better sense.
Change-Id: I43b285f9da15d078fe3df4d231d0ef8d44272d8f
Signed-off-by: Prasanna Kumar Kalever <prasanna.kalever@redhat.com>
Diffstat (limited to 'tests/basic.t')
0 files changed, 0 insertions, 0 deletions