~thomir-deactivatedaccount/charms/trusty/tanuki-spec-manager/trunk-add-nagios-check

« back to all changes in this revision

Viewing changes to templates/upstart.conf

  • Committer: Guillermo Gonzalez
  • Date: 2015-07-16 20:06:47 UTC
  • mto: This revision was merged to the branch mainline in revision 12.
  • Revision ID: guillermo.gonzalez@canonical.com-20150716200647-gzskcvy051rot6l5
 * add basic postgresql|db support
    - use db-admin relation credentials to manage the schema (only root can read those files)
    - use db relation credentials for the appserver
    - add action to run the schema upgrade

Show diffs side-by-side

added added

removed removed

Lines of Context:
11
11
# unless it fails 15 times within 5 seconds
12
12
respawn limit 15 5
13
13
 
 
14
env LOG_DIR=/srv/{{ environment }}/logs
14
15
env SERVICE_DIR=/srv/{{ environment }}/spec-manager
15
16
 
16
17
script
20
21
  exec sudo -u www-data ./env/bin/gunicorn \
21
22
    --name=spec-manager \
22
23
    --bind=0.0.0.0 \
23
 
    --log-file=${SERVICE_DIR}/logs/gunicorn.log \
 
24
    --log-file=${LOG_DIR}/gunicorn.log \
24
25
    --log-level=INFO \
25
 
    --access-logfile=${SERVICE_DIR}/logs/access.log \
 
26
    --access-logfile=${LOG_DIR}/access.log \
26
27
    specmgr.wsgi:app
27
28
 
28
29
end script