Merge "Fixing monitor-tools interaction with sysctl"

This commit is contained in:
Zuul 2022-04-22 18:57:53 +00:00 committed by Gerrit Code Review
commit 5175b23379
1 changed files with 2 additions and 5 deletions

View File

@ -4,11 +4,8 @@
case "$1" in
configure)
grep schedstats /etc/sysctl.conf
if [ $? -ne 0 ]; then
echo -e "\nkernel.sched_schedstats=1" >> /etc/sysctl.conf
sysctl -p &>/dev/null
fi
echo -e "\nkernel.sched_schedstats=1" > /etc/sysctl.d/100-monitor-tools.conf
sysctl -p &>/dev/null
exit 0
;;
*)