Mercurial > libervia-backend
changeset 2438:a34b4fca16e2
core (sat.sh): force python 2 to launch twistd, and avoid launching wrong version if twistd is installed for python 3 too
author | Goffi <goffi@goffi.org> |
---|---|
date | Fri, 17 Nov 2017 10:59:59 +0100 |
parents | 91bbad17fd53 |
children | 6908fe4c6eca |
files | src/sat.sh |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/sat.sh Thu Nov 16 07:31:00 2017 +0100 +++ b/src/sat.sh Fri Nov 17 10:59:59 2017 +0100 @@ -3,6 +3,7 @@ DEBUG="" DAEMON="" PYTHON="python2" +TWISTD="$(which twistd)" kill_process() { # $1 is the file containing the PID to kill, $2 is the process name @@ -103,4 +104,4 @@ mkdir $log_dir fi -exec twistd $MAIN_OPTIONS $ADDITIONAL_OPTIONS $APP_NAME_FILE +exec $PYTHON $TWISTD $MAIN_OPTIONS $ADDITIONAL_OPTIONS $APP_NAME_FILE