mirror of https://github.com/apache/cloudstack.git
scripts: creates /var/run/cloud folder for creation of lock file (#4373)
Co-authored-by: Pearl Dsilva <pearl.dsilva@shapeblue.com>
This commit is contained in:
parent
94f9f89736
commit
cdcc914995
|
|
@ -131,6 +131,9 @@ fi
|
|||
|
||||
LOCKFILE=/var/run/cloud/vxlan.lock
|
||||
|
||||
# ensures that parent directories exists and prepares the lock file
|
||||
mkdir -p "${LOCKFILE%/*}"
|
||||
|
||||
(
|
||||
flock -x -w 10 200 || exit 1
|
||||
if [[ "$OP" == "add" ]]; then
|
||||
|
|
|
|||
Loading…
Reference in New Issue