core (sat.sh): force python 2 to launch twistd, and avoid launching wrong version if twistd is installed for python 3 too
This commit is contained in:
parent
a014e6a873
commit
b762596721
1 changed files with 2 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue