diff --git a/backup.nix b/backup.nix index b542aff..c10c2cd 100644 --- a/backup.nix +++ b/backup.nix @@ -98,11 +98,14 @@ in { wants = [ "network-online.target" ]; requires = [ "postgresql.service" ]; - unitConfig.onFailure = '' + unitConfig.OnFailure = '' + invocationId="$(systemctl show --value -p InvocationID misskey-backup.service)" + logs="$(journalctl _SYSTEMD_INVOCATION_ID= -u misskey-backup.service)" + ${notifyError} "backup" "Misskey Backup Failure Notification" "$(<