saibotk
4dfd382a75
This is to be notified when the systemd service fails to e.g. unmount the partition.
6 lines
345 B
Desktop File
6 lines
345 B
Desktop File
[Unit]
|
|
Description=Writes the error for the monitoring to pick the failure up.
|
|
|
|
[Service]
|
|
Type=oneshot
|
|
ExecStart=/usr/bin/bash -c 'echo 1337 > {{ lvm_self_backup_status_directory }}/backup.status && chown {{ lvm_self_backup_status_directory_uid }}:{{ lvm_self_backup_status_directory_gid }} {{ lvm_self_backup_status_directory }}/backup.status'
|