Skip to content

Instantly share code, notes, and snippets.

@ngs
Created February 8, 2021 17:51
Show Gist options
  • Save ngs/2cf6f2f84e6be426a010346af9b4424c to your computer and use it in GitHub Desktop.
Save ngs/2cf6f2f84e6be426a010346af9b4424c to your computer and use it in GitHub Desktop.
# /etc/systemd/system/gpio-watch.service
[Unit]
Description=gpio-watch is a tool for running scripts in response to GPIO events.
[Service]
User=root
WorkingDirectory=/root
ExecStart=/usr/bin/gpio-watch 6:rising
Restart=always
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment