# HG changeset patch # User Goffi # Date 1587396821 -7200 # Node ID 2ed4e399e1d4832ae4f6b0563bd4ee0ef6dc8657 # Parent 8aff742d0dd0134bbec4ef2f9caccd6c51808b6f bin (libervia): check `twistd` before `twistd3` to use venv version first diff -r 8aff742d0dd0 -r 2ed4e399e1d4 bin/libervia --- a/bin/libervia Sun Apr 19 22:56:59 2020 +0200 +++ b/bin/libervia Mon Apr 20 17:33:41 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"