summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormartinko2012-07-24 23:05:55 +0000
committermartinko2012-07-24 23:05:55 +0000
commit575e5cdfac67151301cec4f8355066ec0a75cb78 (patch)
tree3b2966c99f0aaff3faf1982f23519ae434395378
parentf7d9cdbb2849bd2e187e2d13eb37dbc8972197a2 (diff)
doc/scriptmgr.txt: manual update
catch up with the previous commit
-rw-r--r--doc/scriptmgr.txt27
1 files changed, 18 insertions, 9 deletions
diff --git a/doc/scriptmgr.txt b/doc/scriptmgr.txt
index ac73ed0f..370f820c 100644
--- a/doc/scriptmgr.txt
+++ b/doc/scriptmgr.txt
@@ -6,14 +6,14 @@ scriptmgr - utility for controlling other skytools scripts.
== SYNOPSIS ==
- scriptmgr.py [switches] config.ini <command> [-a | job_name ... ]
+ scriptmgr.py [switches] config.ini <command> [-a | -t service | job_name...]
== DESCRIPTION ==
scriptmgr is used to manage several scripts together. It discovers
-potential jobs based on config file glob expression. From config
-file it gets both job_name and service type (that is the main section
-name eg [cube_dispatcher]). For each service type there is subsection
+potential jobs based on config file glob expression. From config file
+it gets both job_name and service type (that is the main section name,
+e.g. [cube_dispatcher]). For each service type there is subsection
in the config how to handle it. Unknown services are ignored.
== COMMANDS ==
@@ -27,27 +27,31 @@ Show status for all known jobs.
=== start ===
scriptmgr config.ini start -a
+ scriptmgr config.ini start -t service
scriptmgr config.ini start job_name1 job_name2 ...
-launch script(s) that are not running.
+Launch script(s) that are not running.
=== stop ===
scriptmgr config.ini stop -a
+ scriptmgr config.ini stop -t service
scriptmgr config.ini stop job_name1 job_name2 ...
-stop script(s) that are running.
+Stop script(s) that are running.
=== restart ===
scriptmgr config.ini restart -a
+ scriptmgr config.ini restart -t service
scriptmgr config.ini restart job_name1 job_name2 ...
-restart scripts.
+Restart scripts.
=== reload ===
scriptmgr config.ini reload -a
+ scriptmgr config.ini reload -t service
scriptmgr config.ini reload job_name1 job_name2 ...
Send SIGHUP to scripts that are running.
@@ -59,8 +63,8 @@ include::common.config.txt[]
=== scriptmgr parameters ===
config_list::
- List of glob patters for finding config files. Example:
-
+ List of glob patterns for finding config files. Example:
+
config_list = ~/dbscripts/conf/*.ini, ~/random/conf/*.ini
=== Service section parameters ===
@@ -111,3 +115,8 @@ Options specific to scriptmgr:
-a, --all::
Operate on all non-disabled scripts.
+-t 'service', --type='service'::
+ Operate on all non-disabled scripts of this service type.
+
+-w, --wait::
+ Wait for script(s) after signalling.