xlock/systemd/xlock@.service

15 lines
237 B
SYSTEMD
Raw Normal View History

2019-03-02 18:47:03 +00:00
[Unit]
Description=Locker daemon
2019-03-03 13:01:16 +00:00
# allows infinite restarts
StartLimitIntervalSec=0
2019-03-02 18:47:03 +00:00
[Service]
2019-03-03 13:01:16 +00:00
Type=simple
2019-03-02 18:47:03 +00:00
User=%i
Group=%i
2019-03-03 13:01:16 +00:00
Restart=always
2019-03-02 18:47:03 +00:00
Environment="DISPLAY=:0"
Environment="XAUTHORITY=/home/%i/.Xauthority"
ExecStart=/usr/sbin/xlock