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() |