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

@@ -15,12 +15,12 @@ To track what the service is doing execute one of the following commands:
#### systemctl
```bash
watch -n2 "systemctl status backup-remote-to-local.service"
watch -n2 "systemctl status backup-remote-to-local.cymais.service"
```
#### journalctl
```bash
journalctl -fu backup-remote-to-local.service
journalctl -fu backup-remote-to-local.cymais.service
```
### history

View File

@@ -1,6 +1,6 @@
- name: "reload backup-remote-to-local service"
systemd:
name: backup-remote-to-local.service
name: backup-remote-to-local.cymais.service
daemon_reload: yes
- name: "restart backup-remote-to-local timer"

View File

@@ -10,8 +10,10 @@
dest: "{{docker_backup_remote_to_local_folder}}backup-remote-to-local.sh"
mode: 0755
- name: create backup-remote-to-local.service
template: src=backup-remote-to-local.service.j2 dest=/etc/systemd/system/backup-remote-to-local.service
- name: create backup-remote-to-local.cymais.service
template:
src: backup-remote-to-local.service.j2
dest: /etc/systemd/system/backup-remote-to-local.cymais.service
notify: reload backup-remote-to-local service
- name: create backups-remote-to-local.sh

View File

@@ -1,6 +1,6 @@
[Unit]
Description=pull remote backups
OnFailure=systemd-notifier@%n.service cleanup-failed-docker-backups.service
OnFailure=systemd-notifier.cymais@%n.service cleanup-failed-docker-backups.cymais.service
[Service]
Type=oneshot