Created
April 22, 2018 18:02
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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