Fix odoo-reload.py killing child odoo for 12

This commit is contained in:
Jared Kipe
2022-05-09 15:59:13 +00:00
parent ae6e91a244
commit 4fa4450973

View File

@@ -7,7 +7,7 @@ import sys
PID = 1
PNAME = 'odoo'
PNAME_PYTHON = ['python']
PNAME_PYTHON = ['python', '/usr/local/bin/']
PNAME_KILL_OTHER = [PNAME] + PNAME_PYTHON
KILL_OTHER = sys.argv[1] == 'KILL_OTHER' if len(sys.argv) >= 2 else False
if KILL_OTHER: