Skip to content

Commit

Permalink
memory-monitor: Fix memory monitor config update for debug container.
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
OhmSpectator committed Dec 2, 2024
1 parent 6d42661 commit 5451c86
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/dom0-ztools/rootfs/bin/eve
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 5451c86

Please sign in to comment.