]> git.donarmstrong.com Git - deb_pkgs/autorandr.git/commitdiff
Use process kill mode in systemd service
authorJohannes Wienke <languitar@semipol.de>
Thu, 19 Jul 2018 12:12:52 +0000 (14:12 +0200)
committerGitHub <noreply@github.com>
Thu, 19 Jul 2018 12:12:52 +0000 (14:12 +0200)
This allows starting background processes in postswitch scripts without having to deal with cgroups. Will resolve #111.

contrib/systemd/autorandr.service

index d270c5e68e7c4caee09711ef8e3227b39409b8ba..20277f9a66f5d343168cf6bdd6938012538d1e13 100644 (file)
@@ -11,6 +11,7 @@ StartLimitBurst=1
 ExecStart=/usr/bin/autorandr --batch --change --default default
 Type=oneshot
 RemainAfterExit=false
+KillMode=process
 
 [Install]
 WantedBy=sleep.target