From 7dc050b721f0de2c62f9084c5cc9db533bf47d1d Mon Sep 17 00:00:00 2001 From: Jan-Simon Moeller Date: Tue, 15 Feb 2022 22:03:10 +0100 Subject: 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 Change-Id: I3e54ac0839a8f77dda8a98b54ea76c80fd04c49e --- templates/tests/fixup-weston-watchdog.jinja2 | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'templates/tests/fixup-weston-watchdog.jinja2') 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 -- cgit 1.2.3-korg