From 20cfa98d6cef04dbfd59f214f776d54cb913a299 Mon Sep 17 00:00:00 2001 From: Burathar Date: Sun, 17 Jan 2021 23:43:43 +0100 Subject: [PATCH] Set service file to always restart --- debian/yubilock.service | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/debian/yubilock.service b/debian/yubilock.service index dda3204..1e5ca03 100644 --- a/debian/yubilock.service +++ b/debian/yubilock.service @@ -2,12 +2,15 @@ Description=Yubikey activated xscreensaver locker/unlocker #Requires=syslog.socket Documentation=https://git.sciuro.org/Burathar/xscreensaver-yubilock +StartLimitIntervalSec=10 +StartLimitBurst=3 [Service] Type=simple ExecStart=/opt/yublilock/venv/bin/python /opt/yubilock/xscreensaver_yubilock.py -v #StandardOutput=null -Restart=on-failure +Restart=always +RestartSec=1 [Install] WantedBy=default.target