diff options
author | Asko Oja | 2009-05-04 14:02:39 +0000 |
---|---|---|
committer | Marko Kreen | 2009-06-01 07:49:44 +0000 |
commit | 9cbd16ab343c28c55012127a1cb643b793547416 (patch) | |
tree | 6a5b351db839396c8d6912d2a0eb90fe1c94d734 /scripts/scriptmgr.py | |
parent | 16e20c4daccb4f0e95249d8fcfe32e89bae41882 (diff) |
python scripts: Move template config to docstring.
* Template config is now in docstring to make to more
easy to keep up-to-date.
* dbscript: --ini option to show template config.
Diffstat (limited to 'scripts/scriptmgr.py')
-rwxr-xr-x | scripts/scriptmgr.py | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/scripts/scriptmgr.py b/scripts/scriptmgr.py index 34d437fd..34bdc35d 100755 --- a/scripts/scriptmgr.py +++ b/scripts/scriptmgr.py @@ -3,6 +3,44 @@ """Bulk start/stop of scripts. Reads a bunch of config files and maps them to scripts, then handles those. + +Config template: + + [scriptmgr] + job_name = scriptmgr_cphdb5 + config_list = ~/random/conf/*.ini + logfile = ~/log/%(job_name)s.log + pidfile = ~/pid/%(job_name)s.pid + #use_skylog = 1 + + # defaults for services + [DEFAULT] + cwd = ~/ + args = -v + + # service descriptions + + [cube_dispatcher] + script = cube_dispatcher.py + + [table_dispatcher] + script = table_dispatcher.py + + [bulk_loader] + script = bulk_loader.py + + [londiste] + script = londiste.py + args = replay + + [pgqadm] + script = pgqadm.py + args = ticker + + # services to be ignored + + [log_checker] + disabled = 1 """ import sys, os, skytools, signal, glob, ConfigParser, time @@ -26,6 +64,7 @@ def job_sort_cmp(j1, j2): else: return 0 class ScriptMgr(skytools.DBScript): + __doc__ = __doc__ svc_list = [] svc_map = {} config_list = [] |