Skip to content

Commit

Permalink
Fixed issue donbowman#9
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
blauer4 committed Apr 28, 2020
1 parent 24fa8a3 commit bc5c44a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions auto-rotate.service
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit bc5c44a

Please sign in to comment.