Commit f48319c2 authored by Pavel Vainerman's avatar Pavel Vainerman

update README and help

parent 8f40baa7
...@@ -15,15 +15,15 @@ Usage ...@@ -15,15 +15,15 @@ Usage
Help Help
---- ----
-d | --run-from-dir dir - run program from directory -d | --run-from-dir dir - run programs from directory
-f | --run-from-file file - run program from file -f | --run-from-file file - run programs from file
-r | --run '[params]prog args..' - run program from command line" -r | --run '[params]prog args..' - run programs from command line"
-p | --monitor-pid pid - pid of main process (for monitoring) -p | --monitor-pid pid - pid of main process (for monitoring)
-v | --verbose - Print info messages -v | --verbose - Print info messages
-V | --version - Version info -V | --version - Version info
--disable-monitor - only run process
-c | --check-period sec - period for check processes. Default: 5 sec -c | --check-period sec - period for check processes. Default: 5 sec
-t | --terminate-timeout sec - timeout for teminate processes (then the processes will be killed). Default: 5 sec -t | --terminate-timeout sec - timeout for teminate processes (then the processes will be killed). Default: 5 sec
--disable-monitor - only run process
Example 1 (run from directory) Example 1 (run from directory)
------------------------------ ------------------------------
...@@ -44,9 +44,9 @@ Example 2 (run from file) ...@@ -44,9 +44,9 @@ Example 2 (run from file)
[restart] prog1 arg1 arg2 [restart] prog1 arg1 arg2
# comment 1 # comment 1
[ignore_fail,restart] prog2 arg1 arg2 [restart=5] prog2 arg1 arg2
# comment 2 # comment 2
[verbose,shell=False] prog3 [verbose,shell=0] prog3
prog4 arg1 arg2 prog4 arg1 arg2
prog5 arg1 prog5 arg1
......
...@@ -357,9 +357,9 @@ def read_from_commandline(param): ...@@ -357,9 +357,9 @@ def read_from_commandline(param):
def usage(): def usage():
print "[-d|--run-from-dir] dir - run programm from directory" print "[-d|--run-from-dir] dir - run programs from directory"
print "[-f|--run-from-file] file - run programm from file" print "[-f|--run-from-file] file - run programs from file"
print "[-r|--run] '[params]prog args..' - run programm from command line" print "[-r|--run] '[params]prog args..' - run programs from command line"
print "[-p|--monitor-pid] pid - pid of main process (for monitoring)" print "[-p|--monitor-pid] pid - pid of main process (for monitoring)"
print "[-v|--verbose] - Print info messages" print "[-v|--verbose] - Print info messages"
print "[-V|--version] - Version info" print "[-V|--version] - Version info"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment