Skip to content

Instantly share code, notes, and snippets.

@Ertain
Created December 12, 2020 07:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Ertain/43e9166b02de27874b3449f7296ccf3d to your computer and use it in GitHub Desktop.
Save Ertain/43e9166b02de27874b3449f7296ccf3d to your computer and use it in GitHub Desktop.
A systemd service file for running safe shutdown Python script on the RetroFlag NESPi case
[Unit]
Description=Safe shutdown for the RetroFlag PiCase that uses Retropie.
[Service]
Type=simple
ExecStart=/usr/bin/python /opt/RetroFlag/SafeShutdown.py &
RemainAfterExit=yes
[Install]
WantedBy=default.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment