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