Added .cymais.service suffix to make cymais files more visible

This commit is contained in:
2024-01-10 11:18:38 +01:00
parent f3ce00dca7
commit b7e3a7f838
68 changed files with 144 additions and 132 deletions

View File

@@ -40,8 +40,8 @@ waiting_time=600
blocker_running=True
while blocker_running:
try:
bash("systemctl is-active --quiet backup-docker-to-local.service")
bash("systemctl is-active --quiet update-docker.service")
bash("systemctl is-active --quiet backup-docker-to-local.cymais.service")
bash("systemctl is-active --quiet update-docker.cymais.service")
print("backup is running.")
print("trying again in " + str(waiting_time) + " seconds.")
time.sleep(waiting_time)

View File

@@ -1,4 +1,4 @@
- name: "reload heal-docker.service"
- name: "reload heal-docker.cymais.service"
systemd:
name: heal-docker.service
name: heal-docker.cymais.service
daemon_reload: yes

View File

@@ -11,11 +11,11 @@
dest: "{{heal_docker}}heal-docker.py"
when: run_once_heal_docker is not defined
- name: create heal-docker.service
- name: create heal-docker.cymais.service
template:
src: heal-docker.service.j2
dest: /etc/systemd/system/heal-docker.service
notify: reload heal-docker.service
dest: /etc/systemd/system/heal-docker.cymais.service
notify: reload heal-docker.cymais.service
when: run_once_heal_docker is not defined
- name: set service_name to the name of the current role

View File

@@ -1,6 +1,6 @@
[Unit]
Description=restart unhealthy docker containers
OnFailure=systemd-notifier@%n.service
OnFailure=systemd-notifier.cymais@%n.service
[Service]
Type=oneshot