mcklogd: change the timing of start/stop.

This commit is contained in:
Ken Sato
2017-05-09 16:06:07 +09:00
parent 0fef80cb19
commit 3f870b69a6
2 changed files with 13 additions and 13 deletions

View File

@@ -20,6 +20,9 @@ cpus=""
# No SMP module? Exit.
if ! grep ihk_smp_x86 /proc/modules &>/dev/null; then exit 0; fi
# Stop mcklogd
pkill mcklogd
# Destroy all LWK instances
if ls /dev/mcos* 1>/dev/null 2>&1; then
for i in /dev/mcos*; do
@@ -94,9 +97,6 @@ if grep -E 'ihk\s' /proc/modules &>/dev/null; then
fi
fi
# Stop mcklogd
pkill mcklogd
# Start irqbalance with the original settings
if [ "`systemctl status irqbalance_mck.service 2> /dev/null |grep -E 'Active: active'`" != "" ]; then
if ! systemctl stop irqbalance_mck.service 2>/dev/null; then