Created
May 16, 2022 20:07
-
-
Save ethzero/926d7c9ddea3dcc3a01a128a5b240d41 to your computer and use it in GitHub Desktop.
/etc/systemd/system/shutdown-notification.service
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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