aboutsummaryrefslogtreecommitdiffstats
path: root/user
diff options
context:
space:
mode:
authorDavid Runge <dave@sleepmap.de>2016-08-25 23:26:51 +0200
committerDavid Runge <dave@sleepmap.de>2016-08-25 23:26:51 +0200
commitba7e6925f13f5fa88ec842f701e1ff989339b1a9 (patch)
treeb7d88c83b5652417e06fef19e4cc23e360946a0a /user
parentb713e692c8ace4c1f3b9daf33040e2836b0049e8 (diff)
downloaduenv-ba7e6925f13f5fa88ec842f701e1ff989339b1a9.tar.gz
uenv-ba7e6925f13f5fa88ec842f701e1ff989339b1a9.tar.bz2
uenv-ba7e6925f13f5fa88ec842f701e1ff989339b1a9.tar.xz
uenv-ba7e6925f13f5fa88ec842f701e1ff989339b1a9.zip
user/compton.service: Adding a check if X is running using xset. Raising RestartSec to 3s. Making service anti-dependant on realtime kernel.
Diffstat (limited to 'user')
-rw-r--r--user/compton.service5
1 files changed, 4 insertions, 1 deletions
diff --git a/user/compton.service b/user/compton.service
index 8b313b5..a8ceb7e 100644
--- a/user/compton.service
+++ b/user/compton.service
@@ -2,12 +2,15 @@
Description=Compton X Compositor
After=display-manager.service local-fs.target
ConditionFileIsExecutable=/usr/bin/compton
-ConditionFileNotEmpty=/sys/kernel/realtime
+ConditionFileIsExecutable=/usr/bin/xset
+ConditionFileNotEmpty=!/sys/kernel/realtime
[Service]
Type=forking
+ExecStartPre=/usr/bin/sh -c '/usr/bin/xset q 2>&1 > /dev/null'
ExecStart=/usr/bin/compton --config %h/.config/compton.conf -b
Restart=always
+RestartSec=3s
[Install]
WantedBy=default.target