Ubuntu Pastebin

Paste from shredding at Fri, 30 Oct 2015 09:21:32 +0000

Download as text
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
#!/bin/bash

description "Gunicorn application server handling staging"

start on runlevel [2345]
stop on runlevel [!2345]

env DJANGO_SETTINGS_MODULE=core.settings.staging

setuid deployer
setgid www-data
chdir /srv/staging/current

exec bash -c "cd /srv/staging/current && /srv/staging/venv/bin/celery -A core worker -l info --logfile=/var/log/staging.error.log"
Download as text