Skip to content
Snippets Groups Projects
Commit e3ccafa4 authored by Rajmund Hruška's avatar Rajmund Hruška
Browse files

Fix: Add flock synchronization (Redmine issue: #7644)

parent 88c4a40f
No related branches found
No related tags found
No related merge requests found
......@@ -11,4 +11,4 @@
#
# Run once in every 6 hours.
5 */6 * * * root /var/mentat/venv/bin/mentat-cleanup.py --regular
5 */6 * * * root /usr/bin/flock -n /var/mentat/run/mentat-cleanup-py.lock -c '/var/mentat/venv/bin/mentat-cleanup.py --regular'
......@@ -11,4 +11,4 @@
#
# Run every hour at minute 3.
3 * * * * mentat /var/mentat/venv/bin/mentat-precache.py --regular
3 * * * * mentat /usr/bin/flock -n /var/mentat/run/mentat-precache-py.lock -c '/var/mentat/venv/bin/mentat-precache.py --regular'
......@@ -11,4 +11,4 @@
#
# Run once in every 10 minutes.
*/10 * * * * mentat /var/mentat/venv/bin/mentat-reporter.py --regular
*/10 * * * * mentat /usr/bin/flock -n /var/mentat/run/mentat-reporter-py.lock -c '/var/mentat/venv/bin/mentat-reporter.py --regular'
......@@ -11,4 +11,4 @@
#
# Run once in every 5 minutes.
*/5 * * * * mentat /var/mentat/venv/bin/mentat-statistician.py --regular
*/5 * * * * mentat /usr/bin/flock -n /var/mentat/run/mentat-statistician-py.lock -c '/var/mentat/venv/bin/mentat-statistician.py --regular'
......@@ -11,4 +11,4 @@
#
# Run every 15 minutes.
*/15 * * * * root /var/mentat/venv/bin/mentat-dbmngr.py --command=watchdog-events --regular
*/15 * * * * root /usr/bin/flock -n /var/mentat/run/mentat-watchdog-events-py.lock -c '/var/mentat/venv/bin/mentat-dbmngr.py --command=watchdog-events --regular'
......@@ -11,4 +11,4 @@
#
# Run once in every 2 minutes.
*/2 * * * * mentat /var/mentat/venv/bin/mentat-ideagen.py --random-count 20
*/2 * * * * mentat /usr/bin/flock -n /var/mentat/run/mentat-ideagen-py.lock -c '/var/mentat/venv/bin/mentat-ideagen.py --random-count 20'
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment