Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
[Unit]
Description=On Resume
After=suspend.target
[Service]
Type=oneshot
ExecStart=/usr/bin/logger -t suspend -s "on resume"
[Install]
WantedBy=suspend.target
[Unit]
Description=Before Suspend
Before=suspend.target
[Service]
Type=oneshot
ExecStart=/usr/bin/logger -t suspend -s "before suspend"
[Install]
WantedBy=suspend.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.