summarylogtreecommitdiffstats
path: root/auto_facelock@.service
blob: e828854766e8e6005786440616a73b80b83fdc5c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
[Unit]
Description=Face Detection Screen Lock Service for %I
After=multi-user.target

[Service]
Type=simple
ExecStart=/usr/local/bin/auto_facelock.py --known_faces_dir /usr/local/share/known_faces --check_interval 60 --retries 2
Restart=on-failure
User=%I
Environment=DISPLAY=:0
Environment=XAUTHORITY=/home/%I/.Xauthority

[Install]
WantedBy=multi-user.target