Skip to content

Instantly share code, notes, and snippets.

@mattcuk
Created April 22, 2018 18:02
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 mattcuk/1f87a903eb2556b81f7d244033c41f54 to your computer and use it in GitHub Desktop.
Save mattcuk/1f87a903eb2556b81f7d244033c41f54 to your computer and use it in GitHub Desktop.
OSMC shutdown script.. runs when OSMC is shutting down, but before the network code closes
[Unit]
Description=Energenie Remote Call to Secondary Pi
Before=multi-user.target
After=network.target
Conflicts=shutdown.target
[Service]
ExecStart=/bin/true
ExecStop=/bin/sh /home/osmc/callenergenie.sh
Type=oneshot
RemainAfterExit=yes
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment