Merge lp:~brian-murray/charms/precise/errors/move-gunicorn-restart into lp:~daisy-pluckers/charms/precise/errors/trunk

Proposed by Brian Murray
Status: Merged
Merged at revision: 38
Proposed branch: lp:~brian-murray/charms/precise/errors/move-gunicorn-restart
Merge into: lp:~daisy-pluckers/charms/precise/errors/trunk
Diff against target: 19 lines (+2/-2)
2 files modified
hooks/config-changed (+2/-0)
hooks/upgrade-charm (+0/-2)
To merge this branch: bzr merge lp:~brian-murray/charms/precise/errors/move-gunicorn-restart
Reviewer Review Type Date Requested Status
David Ames (community) Approve
Tom Haddon Approve
Review via email: mp+221041@code.launchpad.net

Description of the change

This is a result of RT #71934 where this command was run:

"juju set e-t-errors-app errors_static_url=https://assets.ubuntu.com/sites/errors/478/"

but the errors front ends did not start using the new assets url. This is becasue the config-changed hook does not restart gunicorn. This branch just moves the restart from upgrade-charm to config-changed.

I wanted to have another person look at this as charms aren't my forte.

To post a comment you must log in.
Revision history for this message
Tom Haddon (mthaddon) wrote :

Looks okay to me, as long as the service can tolerate slightly more frequent restarts (config-changed gets called more often than upgrade-charm).

review: Approve
39. By Brian Murray

config-changed is automatically run after upgrade-charm

Revision history for this message
David Ames (thedac) wrote :

+1 Looks good

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'hooks/config-changed'
2--- hooks/config-changed 2014-03-10 23:53:55 +0000
3+++ hooks/config-changed 2014-05-27 18:45:14 +0000
4@@ -34,3 +34,5 @@
5 fi
6
7 save_setting "oops_repository" "$OOPS_LOCAL"
8+
9+service gunicorn restart
10
11=== modified file 'hooks/upgrade-charm'
12--- hooks/upgrade-charm 2013-05-13 15:42:57 +0000
13+++ hooks/upgrade-charm 2014-05-27 18:45:14 +0000
14@@ -9,5 +9,3 @@
15 # new configuration options with this code deployment, some of which may not be
16 # tunable via config.yaml, but still necessary.
17 cp "$DAISY_LOCATION/daisy/configuration.py" "$LOCAL_CONFIG_PATH"
18-hooks/config-changed
19-service gunicorn restart

Subscribers

People subscribed via source and target branches

to all changes: