xlock/systemd/xlock@.service

18 lines
275 B
SYSTEMD
Raw Permalink 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"
2019-03-03 16:28:03 +00:00
ExecStart=/usr/sbin/xlock
[Install]
WantedBy=multi-user.target