~george-edison55/charms/oneiric/thinkup/update-to-1-0-2

« back to all changes in this revision

Viewing changes to hooks/stop

  • Committer: Nathan Osman
  • Date: 2011-11-19 05:59:33 UTC
  • Revision ID: admin@quickmediasolutions.com-20111119055933-mv36jmb3qxvk889w
Initial commit.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#!/bin/bash
2
 
 
3
 
juju-log "Stopping Apache2"
4
 
service apache2 stop
 
2
# This will be run when the service is being torn down, allowing you to disable
 
3
# it in various ways..
 
4
# For example, if your web app uses a text file to signal to the load balancer
 
5
# that it is live... you could remove it and sleep for a bit to allow the load
 
6
# balancer to stop sending traffic.
 
7
# rm /srv/webroot/server-live.txt && sleep 30