You are not logged in.
Pages: 1
I currently have a service file that locks the screen using physlock whenever I sleep my laptop:
[Unit]
Description=Lock the screen
Before=sleep.target hibernate.target
[Service]
ExecStart=/usr/bin/physlock
[Install]
WantedBy=sleep.target hibernate.targetThe problem is that if I have physlock already running and I shut my laptop, the service will run and continue to run even after I unlock the screen with the previously running physlock. This means it doesn't run when I sleep my laptop from then on out unless I manually stop it. Is there any way to fix this behavior?
Offline
-d fork and detach, parent returns after everything is set up
(useful for suspend/hibernate scripts)
-h print short usage help and exit
-l only lock console switching
-L only enable console switching
-m mute kernel messages on console while physlock is running
-p MSG Display MSG before the password prompt
-s disable sysrq key while physlock is running
-v print version information and exit
Offline
I've read the man pages, and `-d` doesn't work with my service file, it just makes the screen flash black for a second and brings it back without locking.
Offline
If you use -d you most likely need to change the systemd service to Type=forking.
Inofficial first vice president of the Rust Evangelism Strike Force
Offline
Pages: 1