Setup:
Create system user 'ipipet':
sudo adduser --system --group --no-create-home ipipet
Create directories for ipipet:
sudo mkdir /var/{run,log}/ipipet
sudo chown ipipet:ipipet /var/{run,log}/ipipet
sudo chmod 0755 /var/{run,log}/ipipet
The run the flask app with gunicorn as user ipipet:
sudo ./pooling.sh start