Skip to content

Instantly share code, notes, and snippets.

View bpepple's full-sized avatar

Brian Pepple bpepple

View GitHub Profile
@Mic92
Mic92 / pushover-warning@.service
Last active February 25, 2023 14:21
Sent pushover warnings when a systemd service failed (useful for backups and systemd timers)
[Unit]
Description=pushover warning
[Service]
Type=oneshot
ExecStart=/usr/bin/curl -s \
--form-string "token=<PUSHOVER_APPLICATION_TOKEN>" \
--form-string "user=<PUSHOVER_USER_TOKEN>" \
--form-string "message=service %I at %H failed" \
https://api.pushover.net/1/messages.json