# HG changeset patch # User Goffi # Date 1587387177 -7200 # Node ID e81ad34e8af8d11f8ed91980beeea21c6274cba4 # Parent aa71f1d40300a232d8b23698988a1f02b139e32a bin (sat): check `twistd` before `twistd3` to use venv version first diff -r aa71f1d40300 -r e81ad34e8af8 bin/sat --- a/bin/sat Mon Apr 20 14:51:58 2020 +0200 +++ b/bin/sat Mon Apr 20 14:52:57 2020 +0200 @@ -4,10 +4,10 @@ DAEMON="" PYTHON="python3" -# for Python 3, "twistd" is named "twistd3" on some distros, so we check for it first -TWISTD="$(which twistd3 2>/dev/null)" +TWISTD="$(which twistd 2>/dev/null)" if [ $? -ne 0 ]; then - TWISTD="$(which twistd 2>/dev/null)" + # for Python 3, "twistd" is named "twistd3" on some distros + TWISTD="$(which twistd3 2>/dev/null)" fi if [ $? -ne 0 ]; then printf "Can't find \"twistd\" script, are you sure that Twisted is installed?\n"