cic-staff-installer/systemd/bin/cic_cache_server_start.sh

6 lines
292 B
Bash

#!/bin/bash
t=`mktemp`
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 $@"