Browse code

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

Federico Ressi authored on 2020/01/24 14:49:03
Showing 2 changed files
... ...
@@ -14,7 +14,7 @@
14 14
 
15 15
 set -o errexit
16 16
 
17
-PYTHON=${PYTHON:-python}
17
+PYTHON=${PYTHON:-python3}
18 18
 
19 19
 # time to sleep between checks
20 20
 SLEEP_TIME=20
21 21
old mode 100755
22 22
new mode 100644
... ...
@@ -1,5 +1,3 @@
1
-#!/usr/bin/env python
2
-
3 1
 # This tool lists processes that lock memory pages from swapping to disk.
4 2
 
5 3
 import re