aboutsummaryrefslogtreecommitdiff
path: root/dot_config/systemd/user
diff options
context:
space:
mode:
authorRyan Kavanagh <rak@rak.ac>2026-08-07 13:20:34 -0400
committerRyan Kavanagh <rak@rak.ac>2026-08-07 13:20:34 -0400
commit0c8f2e1a0a7c5da108f8006498230f9c47752af1 (patch)
treeeb85be40e94bd442957e97006fe561ef7eebe3b2 /dot_config/systemd/user
parentmodernized borgmatic configs for asteria (diff)
notify on failed borgmatic backupHEADmaster
Diffstat (limited to 'dot_config/systemd/user')
-rw-r--r--dot_config/systemd/user/borgmatic@.service1
-rw-r--r--dot_config/systemd/user/notify-unit-failure@.service5
2 files changed, 6 insertions, 0 deletions
diff --git a/dot_config/systemd/user/borgmatic@.service b/dot_config/systemd/user/borgmatic@.service
index a4ad31e..479d40a 100644
--- a/dot_config/systemd/user/borgmatic@.service
+++ b/dot_config/systemd/user/borgmatic@.service
@@ -7,6 +7,7 @@ After=network-online.target
ConditionACPower=true
ConditionFileNotEmpty=/home/rak/.config/borgmatic/%I.yaml
Documentation=https://torsion.org/borgmatic/
+OnFailure=notify-unit-failure@%i.service
[Service]
Type=oneshot
diff --git a/dot_config/systemd/user/notify-unit-failure@.service b/dot_config/systemd/user/notify-unit-failure@.service
new file mode 100644
index 0000000..f339470
--- /dev/null
+++ b/dot_config/systemd/user/notify-unit-failure@.service
@@ -0,0 +1,5 @@
+[Unit]
+Description=Failure Notification
+
+[Service]
+ExecStart=notify-send --icon /usr/share/icons/Adwaita/symbolic/status/task-past-due-symbolic.svg "systemd unit failure" "systemd unit %I failed"