puppet-elastic_recheck/files/er_safe_run.sh

6 lines
194 B
Bash
Executable File

#!/bin/bash
# Timeout after 4 hours as we've seen this script occasionally fail to
# exit after running for days.
flock -w 3600 timeout -k 60 14400 /var/lib/elastic-recheck/er_safe_run.lock $@