debian/local-physlock.service
raw| 1 | # This service files serves as example for the integration of physlock |
| 2 | # in sleep/suspend/resume using systemd. |
| 3 | |
| 4 | [Unit] |
| 5 | Description=Lock consoles using physlock |
| 6 | Before=sleep.target |
| 7 | |
| 8 | [Service] |
| 9 | Type=forking |
| 10 | ExecStart=/usr/bin/physlock -ds |
| 11 | Restart=on-failure |
| 12 | |
| 13 | [Install] |
| 14 | WantedBy=sleep.target |