From 8209f7b0908c2e3172dac070993c7659115c9956 Mon Sep 17 00:00:00 2001 From: nolash Date: Mon, 6 Dec 2021 10:09:38 +0100 Subject: [PATCH] Skip python plugin directive for uwsgi (doesn't work in ubuntu), explicit python3 --- systemd/bin/cic_cache_server_start.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/systemd/bin/cic_cache_server_start.sh b/systemd/bin/cic_cache_server_start.sh index cc05e89..b1cfb2c 100644 --- a/systemd/bin/cic_cache_server_start.sh +++ b/systemd/bin/cic_cache_server_start.sh @@ -1,5 +1,5 @@ #!/bin/bash t=`mktemp` -f=`python -c "import cic_cache; import os; s = os.path.dirname(cic_cache.__file__); print(os.path.join(s, 'runnable', 'daemons', 'server.py'))"` -uwsgi --plugin python --wsgi-file $f --http $SERVER_HOST:$SERVER_PORT --pyargv "-c $HOME/.config/cic/cache $@" +f=`python3 -c "import cic_cache; import os; s = os.path.dirname(cic_cache.__file__); print(os.path.join(s, 'runnable', 'daemons', 'server.py'))"` +uwsgi --master --enable-threads --wsgi-file $f --http $SERVER_HOST:$SERVER_PORT --pyargv "-c $HOME/.config/cic/cache $@"