Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [Unit]
- Description=My command on power event
- Before=shutdown.target
- DefaultDependencies=no
- [Service]
- ExecStart=/some/thing/to/execute
- Type=oneshot
- RemainAfterExit=yes
- [Install]
- WantedBy=shutdown.target
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement