From bc5c44a3b5054c4d43b8702cd3c24a22a6630b5a Mon Sep 17 00:00:00 2001 From: Lollixzc <56732985+Lollixzc@users.noreply.github.com> Date: Tue, 28 Apr 2020 15:49:22 +0200 Subject: [PATCH] Fixed issue #9 The issue caused the script to not work after a restart or shutdown, because it was called to early. All has been resolved by adding a start delay on the service, by using ExecStartPre=/usr/local/sleep 10. Don't know if add a little more delay for older system. --- auto-rotate.service | 1 + 1 file changed, 1 insertion(+) diff --git a/auto-rotate.service b/auto-rotate.service index d8cfe98..4efc4af 100644 --- a/auto-rotate.service +++ b/auto-rotate.service @@ -11,6 +11,7 @@ BindsTo=graphical-session.target [Service] Environment=DISPLAY=:0 +ExecStartPre=/bin/sleep 10 ExecStart=/usr/local/bin/auto-rotate Restart=on-failure SuccessExitStatus=3 4