Switch to python3 for memory_peak service

When starting 'memory_peak' service is using python command instead of
python3, while psutil (required package) is most probably being
installed into the python3 environment (as we are dropping python2.7
support).

Closes-Bug: #1860753
Change-Id: Ia2b7e2e33d784560443131e2965f520b361a54e3
This commit is contained in:
Federico Ressi 2020-01-24 06:49:03 +01:00
parent 455be66098
commit 3555b48ff4
2 changed files with 1 additions and 3 deletions

View File

@ -14,7 +14,7 @@
set -o errexit
PYTHON=${PYTHON:-python}
PYTHON=${PYTHON:-python3}
# time to sleep between checks
SLEEP_TIME=20

2
tools/mlock_report.py Executable file → Normal file
View File

@ -1,5 +1,3 @@
#!/usr/bin/env python
# This tool lists processes that lock memory pages from swapping to disk.
import re