~george-edison55/charms/precise/python-django/fix-readme

« back to all changes in this revision

Viewing changes to hooks/db-relation-changed

  • Committer: Patrick Hetu
  • Date: 2012-05-09 20:20:08 UTC
  • Revision ID: patrick.hetu@gmail.com-20120509202008-u7bfh0a4gs1u580g
use the wsgi subordinate

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#!/bin/bash
2
2
 
3
 
relation-set private-address=`ifconfig  | grep 'inet addr:'| grep -v '127.0.0.1' | cut -d: -f2 | awk '{ print $1}'|head -n 1`
 
3
relation-set private-address=`relation-get private-address`
4
4
 
5
5
base=`dirname $0`
6
6
 
46
46
 
47
47
exec $base/config-changed
48
48
 
49
 
/etc/init.d/gunicorn start
50
 
/etc/init.d/gunicorn reload