skytools.scripting: log config reload, updated comment.
authormartinko <gamato@users.sf.net>
Sat, 4 Aug 2012 18:16:58 +0000 (20:16 +0200)
committermartinko <gamato@users.sf.net>
Sat, 4 Aug 2012 18:16:58 +0000 (20:16 +0200)
python/skytools/scripting.py

index afba19979c9b3c1141922f84720a22a8fe55596c..5efae8d6545c476cc03b3f79f9d868837cf0c256 100644 (file)
@@ -242,9 +242,9 @@ class BaseScript(object):
         """Script setup.
 
         User class should override work() and optionally __init__(), startup(),
-        reload(), reset() and init_optparse().
+        reload(), reset(), shutdown() and init_optparse().
 
-        NB: in case of daemon, the __init__() and startup()/work() will be
+        NB: In case of daemon, __init__() and startup()/work()/shutdown() will be
         run in different processes.  So nothing fancy should be done in __init__().
 
         @param service_name: unique name for script.
@@ -436,6 +436,7 @@ class BaseScript(object):
             self.cf = self.load_config()
         else:
             self.cf.reload()
+            self.log.info ("Config reloaded")
         self.job_name = self.cf.get("job_name")
         self.pidfile = self.cf.getfile("pidfile", '')
         self.loop_delay = self.cf.getfloat("loop_delay", 1.0)