~jcsackett/charms/precise/gitpad/trunk

« back to all changes in this revision

Viewing changes to hooks/stop

  • Committer: j.c.sackett
  • Date: 2013-12-03 13:59:55 UTC
  • Revision ID: jcsackett@canonical.com-20131203135955-1co8bq0ub748aolq
Basic charm complete.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
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
 
2
rm /etc/cron.d/ubuntu