From b762596721372f3249d6e67ba51804fc5b1f422a Mon Sep 17 00:00:00 2001 From: Goffi Date: Fri, 17 Nov 2017 10:59:59 +0100 Subject: [PATCH] core (sat.sh): force python 2 to launch twistd, and avoid launching wrong version if twistd is installed for python 3 too --- src/sat.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/sat.sh b/src/sat.sh index 068441ee..bb3879ca 100755 --- a/src/sat.sh +++ b/src/sat.sh @@ -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 @@ if [ ! -d $log_dir ] ; then mkdir $log_dir fi -exec twistd $MAIN_OPTIONS $ADDITIONAL_OPTIONS $APP_NAME_FILE +exec $PYTHON $TWISTD $MAIN_OPTIONS $ADDITIONAL_OPTIONS $APP_NAME_FILE