From 5451c86d9934e2058f5c127f38398a99f8dedb77 Mon Sep 17 00:00:00 2001 From: Nikolay Martyanov Date: Mon, 2 Dec 2024 16:41:57 +0100 Subject: [PATCH] memory-monitor: Fix memory monitor config update for debug container. Update the pkill command in the memory-monitor-update-config case to use the process name (memory-monitor) instead of the full path (/sbin/memory-monitor). This change ensures compatibility with the debug container, which uses procps-ng version 3.3.17 that does not support full paths in the pkill command. This adjustment makes the command functional when executed in the debug container, improving usability for users connecting via SSH. Signed-off-by: Nikolay Martyanov --- pkg/dom0-ztools/rootfs/bin/eve | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/dom0-ztools/rootfs/bin/eve b/pkg/dom0-ztools/rootfs/bin/eve index 4f0e557ec7..2875c72ff2 100755 --- a/pkg/dom0-ztools/rootfs/bin/eve +++ b/pkg/dom0-ztools/rootfs/bin/eve @@ -256,7 +256,7 @@ __EOT__ echo "Your information can be found in logread" ;; memory-monitor-update-config) - pkill -SIGHUP -o /sbin/memory-monitor + pkill -SIGHUP -o memory-monitor echo "Updated memory-monitor configuration" ;; psi-collector)