Created
June 29, 2018 09:34
-
-
Save dbrgn/bfad33a3fed5a1e4b06c6a58080c3827 to your computer and use it in GitHub Desktop.
Example: Shutdown script for iC880A backplane
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
To install this script, copy the Python script to
/usr/local/bin/button-shutdown.py
and the service file to/etc/systemd/system/button-shutdown.service
.Then, reload systemd (or alternatively reboot the Raspberry Pi):
Now you can start and enable (=autostart) the service:
To see the current status of the service, type:
To see the logs: