]> git.donarmstrong.com Git - deb_pkgs/autorandr.git/blobdiff - contrib/systemd/autorandr.service
Don't fail hard in get_fb_dimensions if a mode isn't WWWxHHH
[deb_pkgs/autorandr.git] / contrib / systemd / autorandr.service
index a013fa0792a61caaad002a6ebbccd81e9c5c6b04..20277f9a66f5d343168cf6bdd6938012538d1e13 100644 (file)
@@ -1,11 +1,17 @@
 [Unit]
 Description=autorandr execution hook
 After=sleep.target
+# Note: StartLimitInterval was renamed to StartLimitIntervalSec in systemd-230.
+# See autorandr bug #69. Do not rename for now, as the old name is kept for
+# compatibility.
+StartLimitInterval=5
+StartLimitBurst=1
 
 [Service]
-ExecStart=/usr/local/bin/autorandr --batch --change --default default
+ExecStart=/usr/bin/autorandr --batch --change --default default
 Type=oneshot
 RemainAfterExit=false
+KillMode=process
 
 [Install]
 WantedBy=sleep.target