Skip to content

Instantly share code, notes, and snippets.

@frangio
Last active January 15, 2020 18:10
Show Gist options
  • Save frangio/404af2360a4992159eb1f9faf98548b4 to your computer and use it in GitHub Desktop.
Save frangio/404af2360a4992159eb1f9faf98548b4 to your computer and use it in GitHub Desktop.
[Unit]
Description=Lock all consoles
Documentation=man:physlock(1)
Before=sleep.target
OnFailure=hibernate.target
[Service]
Type=forking
ExecStart=physlock -d
[Install]
WantedBy=sleep.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment