Skip to content

Instantly share code, notes, and snippets.

@melissacoleman
Last active September 16, 2019 08:50
Show Gist options
  • Save melissacoleman/19f1bbf112e15e6e4201fda55d9c85db to your computer and use it in GitHub Desktop.
Save melissacoleman/19f1bbf112e15e6e4201fda55d9c85db to your computer and use it in GitHub Desktop.
Service for showing image on starting shutdown
[Unit]
Description=show image on starting shutdown
DefaultDependencies=no
Before=halt.target
[Service]
ExecStart=/usr/bin/python3 /path/to/framebuffer-pythonscript.py -img /path/to/powerdownimage.jpg
Type=oneshot
[Install]
WantedBy=halt.target poweroff.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment