Kill monitoring scripts by process group to ensure a full shutdown

This commit is contained in:
Michael Vines
2019-01-09 11:17:34 -07:00
parent 048fe371aa
commit eb37aa2bba
2 changed files with 7 additions and 1 deletions

View File

@ -139,7 +139,9 @@ local|tar)
(
sudo scripts/oom-monitor.sh
) > oom-monitor.log 2>&1 &
echo $! > oom-monitor.pid
scripts/net-stats.sh > net-stats.log 2>&1 &
echo $! > net-stats.pid
maybeNoLeaderRotation=
if ! $leaderRotation; then