Configure restart control
This commit is contained in:
parent
5974bbdc45
commit
473ea5ceec
2 changed files with 5 additions and 1 deletions
|
@ -1,4 +1,8 @@
|
||||||
# Ansible manages
|
# Ansible manages
|
||||||
|
|
||||||
|
[Unti]
|
||||||
|
StartLimitIntervalSec=6
|
||||||
|
StartLimitBurst=10
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Restart=always
|
Restart=always
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
---
|
---
|
||||||
- name: "Cron | Create cron job for database optimization"
|
- name: "Cron | Create cron job for database optimization"
|
||||||
ansible.builtin.cron:
|
ansible.builtin.cron:
|
||||||
name: 'Ansible: Database optimization'
|
name: 'Database optimization'
|
||||||
job: 'chronic mysqlcheck --all-databases --optimize'
|
job: 'chronic mysqlcheck --all-databases --optimize'
|
||||||
special_time: weekly
|
special_time: weekly
|
||||||
|
|
Loading…
Reference in a new issue