blob: 5175b72ac45d3c38887f707d5d4dde975ae9b79b (
plain)
1 2 3 4 5 6 7 8 9 10 | #!/bin/bash # This will be run when the service is being torn down, allowing you to disable # it in various ways.. # For example, if your web app uses a text file to signal to the load balancer # that it is live... you could remove it and sleep for a bit to allow the load # balancer to stop sending traffic. # rm /srv/webroot/server-live.txt && sleep 30 service mongodb stop rm -f /var/lib/mongodb/mongod.lock
|