mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-08-29 15:06:26 +02:00
Added .cymais.service suffix to make cymais files more visible
This commit is contained in:
@@ -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
|
||||
|
@@ -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"
|
||||
|
@@ -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
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user