Skip to content

A systemd unit template that does things when gpio events happen.

License

Notifications You must be signed in to change notification settings

ali1234/systemd-gpio

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

systemd-gpio

Requirements:

  • WiringPi "gpio" utility
  • Some GPIO attached buttons
  • Distro that uses systemd (eg Raspbian)

Set Up:

  • cp gpio-trigger@.service /etc/systemd/system
  • mkdir /etc/systemd-gpio
  • cp examples/shutdown /etc/systemd-gpio
  • systemctl reenable gpio-trigger@shutdown

You may create an environment file with any name in /etc/systemd-gpio and then enable it as gpio-trigger@name-you-used.

About

A systemd unit template that does things when gpio events happen.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published