Skip to content

Instantly share code, notes, and snippets.

@deepybee
Last active January 7, 2019 22:10
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 deepybee/19a515cc0f24897e288f0a18a57444bd to your computer and use it in GitHub Desktop.
Save deepybee/19a515cc0f24897e288f0a18a57444bd to your computer and use it in GitHub Desktop.
[Unit]
Description=Screen Rotation Service
After=network.target
[Service]
Type=simple
User=root
WorkingDirectory=/usr/lib/screen-rotator/
ExecStart=/usr/lib/screen-rotator/rotate.py &
ExecStop=killall rotate.py
Restart=on-failure
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment