mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-08-29 15:06:26 +02:00
renamed to heal-docker
This commit is contained in:
7
roles/heal-docker/templates/heal-docker.service.j2
Normal file
7
roles/heal-docker/templates/heal-docker.service.j2
Normal file
@@ -0,0 +1,7 @@
|
||||
[Unit]
|
||||
Description=restart unhealthy docker containers
|
||||
OnFailure=systemd-notifier@%n.service
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
ExecStart=/bin/python {{docker_compose_restart_unhealthy}}heal-docker.py
|
10
roles/heal-docker/templates/heal-docker.timer.j2
Normal file
10
roles/heal-docker/templates/heal-docker.timer.j2
Normal file
@@ -0,0 +1,10 @@
|
||||
[Unit]
|
||||
Description=starts heal-docker.service
|
||||
|
||||
[Timer]
|
||||
OnCalendar={{on_calendar_docker_compose_restart_unhealthy}}
|
||||
RandomizedDelaySec={{randomized_delay_sec}}
|
||||
Persistent=false
|
||||
|
||||
[Install]
|
||||
WantedBy=timers.target
|
Reference in New Issue
Block a user