Merge "Run bandersnatch under file locking and a timeout"
This commit is contained in:
commit
8eadad6b26
@ -55,9 +55,13 @@ class openstack_project::pypi_mirror (
|
||||
ensure => directory,
|
||||
}
|
||||
|
||||
file { '/var/run/bandersnatch':
|
||||
ensure => directory,
|
||||
}
|
||||
|
||||
cron { 'bandersnatch':
|
||||
minute => '*/5',
|
||||
command => 'run-bandersnatch >>/var/log/bandersnatch/mirror.log 2>&1',
|
||||
command => 'flock -n /var/run/bandersnatch/mirror.lock timeout -k 2m 30m run-bandersnatch >>/var/log/bandersnatch/mirror.log 2>&1',
|
||||
environment => 'PATH=/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin',
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user