diff --git a/install.sh b/install.sh index b2c709c..3157b87 100644 --- a/install.sh +++ b/install.sh @@ -38,7 +38,7 @@ Environment=DISPLAY=:0 WorkingDirectory=/opt/raspscreen ExecStart=/opt/raspscreen/bin/manage.sh start presentation --foreground KillSignal=SIGKILL -Restart=on-failure +Restart=always RestartSec=2 [Install] @@ -58,7 +58,7 @@ Environment=DISPLAY=:0 Environment=QT_QPA_PLATFORM=xcb WorkingDirectory=/opt/raspscreen ExecStart=/opt/raspscreen/bin/manage.sh start video --foreground -Restart=on-failure +Restart=always RestartSec=2 [Install] diff --git a/service-files/presentation.service b/service-files/presentation.service index e676bb6..9c44dcf 100644 --- a/service-files/presentation.service +++ b/service-files/presentation.service @@ -9,7 +9,7 @@ Environment=DISPLAY=:0 WorkingDirectory=/opt/raspscreen ExecStart=/opt/raspscreen/bin/manage.sh start presentation --foreground KillSignal=SIGKILL -Restart=on-failure +Restart=always RestartSec=2 [Install] diff --git a/service-files/video.service b/service-files/video.service index bc80510..46b9492 100644 --- a/service-files/video.service +++ b/service-files/video.service @@ -9,7 +9,7 @@ Environment=DISPLAY=:0 Environment=QT_QPA_PLATFORM=xcb WorkingDirectory=/opt/raspscreen ExecStart=/opt/raspscreen/bin/manage.sh start video --foreground -Restart=on-failure +Restart=always RestartSec=2 [Install]