Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(1480)

Unified Diff: hooks/stop

Issue 108840044: Fill out the HM9000 implementation
Patch Set: Fill out the HM9000 implementation Created 9 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « hooks/start ('k') | hooks/upgrade-charm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: hooks/stop
=== modified file 'hooks/stop'
--- hooks/stop 2014-05-14 16:40:09 +0000
+++ hooks/stop 2014-05-30 23:34:00 +0000
@@ -1,7 +1,5 @@
-#!/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
+#!/usr/bin/env python
+from charmhelpers.core import services
+import config
+manager = services.ServiceManager(config.SERVICES)
+manager.manage()
« no previous file with comments | « hooks/start ('k') | hooks/upgrade-charm » ('j') | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b