Browse Source

Set service file to always restart

master
Burathar 4 years ago
parent
commit
20cfa98d6c
  1. 5
      debian/yubilock.service

5
debian/yubilock.service vendored

@ -2,12 +2,15 @@
Description=Yubikey activated xscreensaver locker/unlocker Description=Yubikey activated xscreensaver locker/unlocker
#Requires=syslog.socket #Requires=syslog.socket
Documentation=https://git.sciuro.org/Burathar/xscreensaver-yubilock Documentation=https://git.sciuro.org/Burathar/xscreensaver-yubilock
StartLimitIntervalSec=10
StartLimitBurst=3
[Service] [Service]
Type=simple Type=simple
ExecStart=/opt/yublilock/venv/bin/python /opt/yubilock/xscreensaver_yubilock.py -v ExecStart=/opt/yublilock/venv/bin/python /opt/yubilock/xscreensaver_yubilock.py -v
#StandardOutput=null #StandardOutput=null
Restart=on-failure Restart=always
RestartSec=1
[Install] [Install]
WantedBy=default.target WantedBy=default.target

Loading…
Cancel
Save