From 050b0573c2e39922b934c19d303a44278f1c8d55 Mon Sep 17 00:00:00 2001 From: Johannes Wienke Date: Thu, 19 Jul 2018 14:12:52 +0200 Subject: [PATCH] Use process kill mode in systemd service This allows starting background processes in postswitch scripts without having to deal with cgroups. Will resolve #111. --- contrib/systemd/autorandr.service | 1 + 1 file changed, 1 insertion(+) diff --git a/contrib/systemd/autorandr.service b/contrib/systemd/autorandr.service index d270c5e..20277f9 100644 --- a/contrib/systemd/autorandr.service +++ b/contrib/systemd/autorandr.service @@ -11,6 +11,7 @@ StartLimitBurst=1 ExecStart=/usr/bin/autorandr --batch --change --default default Type=oneshot RemainAfterExit=false +KillMode=process [Install] WantedBy=sleep.target