summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorJan-Simon Moeller <jsmoeller@linuxfoundation.org>2022-02-15 22:03:10 +0100
committerJan-Simon Moeller <jsmoeller@linuxfoundation.org>2022-02-15 22:03:10 +0100
commit7dc050b721f0de2c62f9084c5cc9db533bf47d1d (patch)
treee5ba2e969df4304e84e1a726ba9118aed44cd38a /templates
parent6e12841e94bd5e363c8a395b36417fac0bc9ccdc (diff)
Extend fixup of watchdog for user session
The user session needs to be reloaded as well. Bug-AGL: SPEC-4165 Signed-off-by: Jan-Simon Moeller <jsmoeller@linuxfoundation.org> Change-Id: I3e54ac0839a8f77dda8a98b54ea76c80fd04c49e
Diffstat (limited to 'templates')
-rw-r--r--templates/tests/fixup-weston-watchdog.jinja211
1 files changed, 8 insertions, 3 deletions
diff --git a/templates/tests/fixup-weston-watchdog.jinja2 b/templates/tests/fixup-weston-watchdog.jinja2
index ac00de4..3ce80de 100644
--- a/templates/tests/fixup-weston-watchdog.jinja2
+++ b/templates/tests/fixup-weston-watchdog.jinja2
@@ -8,11 +8,16 @@
description: "extend watchdog on virtual"
run:
steps:
- - sed -i -e "s#WatchdogSec=20#WatchdogSec=240#g" /usr/lib/systemd/user/agl-compositor.service
+ # disable the watchdog - for slow systems
+ - sed -i -e "s#WatchdogSec=20#WatchdogSec=0#g" /usr/lib/systemd/user/agl-compositor.service
+ # disable the coredumps - for slow systems
+ - echo "kernel.core_pattern=/dev/null" > /etc/sysctl/50-coredump.conf
+ - sysctl -p /etc/sysctl.d/50-coredump.conf
+ # need to reload user-session and system daemon
+ - su - agl-driver -c 'export DBUS_SESSION_BUS_ADDRESS="unix:path=/run/user/1001/bus" ; systemctl --user daemon-reload'
- systemctl daemon-reload
- systemctl restart agl-session@agl-driver.service
- - sleep 60
- - journalctl --no-pager -a -b
+ - sleep 20
from: inline
name: fixup-weston-watchdog
path: inline/fixup-weston-watchdog.yaml