~arosales/charms/precise/kibana/update-charm-icon

« back to all changes in this revision

Viewing changes to hooks/stop

  • Committer: Paul Czarkowski
  • Date: 2012-11-06 04:38:09 UTC
  • Revision ID: paul@paulcz.net-20121106043809-71r4n32yzgbb22r7
Initial charm

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/bash
 
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
 
8
 
 
9
initctl stop kibana
 
10
close-port 5601/tcp
 
 
b'\\ No newline at end of file'