Fix flock wait timeout in crontask

In flock from util-linux 2.23.2 wait timeout cannot be zero

Blueprint: master-on-centos7

Compatible with CentOS6 master node

Closes-Bug: #1517436

Change-Id: I4280c772df7612576ca44243f097a1622c892290
This commit is contained in:
Ivan Suzdal 2015-11-12 22:06:26 +03:00 committed by Dmitry Teselkin
parent b56f832abc
commit a33a58d378
1 changed files with 1 additions and 1 deletions

View File

@ -1 +1 @@
* * * * * root flock -w 0 -o /var/lock/nailgun-agent.lock -c "/usr/bin/nailgun-agent 2>&1 | tee -a /var/log/nailgun-agent.log | /usr/bin/logger -t nailgun-agent"
* * * * * root flock -w 1 -o /var/lock/nailgun-agent.lock -c "/usr/bin/nailgun-agent 2>&1 | tee -a /var/log/nailgun-agent.log | /usr/bin/logger -t nailgun-agent"