Skip to content

Instantly share code, notes, and snippets.

@ethzero
Created May 16, 2022 20:07
Show Gist options
  • Save ethzero/926d7c9ddea3dcc3a01a128a5b240d41 to your computer and use it in GitHub Desktop.
Save ethzero/926d7c9ddea3dcc3a01a128a5b240d41 to your computer and use it in GitHub Desktop.
/etc/systemd/system/shutdown-notification.service
# Installation:
# sudo wget "<this file>" -O /etc/systemd/system/shutdown-notification.service
# sudo systemctl daemon-reload
# sudo systemctl enable shutdown-notification.service
# sudo systemctl list-unit-files | grep 'shutdown-notification.service'
[Unit]
Description=Shutdown Notification
DefaultDependencies=no
Before=shutdown.target
[Service]
Type=oneshot
ExecStart=/usr/local/bin/send-pushbullet.sh -s
TimeoutStartSec=0
[Install]
WantedBy=shutdown.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment