Added retries for db_sync

If db sync fails, it is never retried leading to errors. So, this
patch adds retries for db_sync to avoid sync fails.

Change-Id: I747ad31ea7095c27f0760aec8f1ccea2195223cc
Closes-Bug: #1628580
This commit is contained in:
Sharat Sharma 2016-09-29 14:38:56 +05:30
parent 54d8acc9dc
commit ad711e929d
1 changed files with 2 additions and 0 deletions

View File

@ -17,6 +17,8 @@ class glare::db::sync(
user => 'glare',
path => [ '/bin/', '/usr/bin/' , '/usr/local/bin' ],
refreshonly => true,
try_sleep => 5,
tries => 10,
subscribe => [Package['glare'], Glare_config['database/connection']],
}
Exec['glare-db-sync'] ~> Service<| title == 'glare' |>