Permalink
Browse files

docs

  • Loading branch information...
1 parent e81086e commit 8ef2086bc36041a24c3b3be71d908040574d3cf4 @tj committed Nov 1, 2012
Showing with 21 additions and 0 deletions.
  1. +21 −0 Readme.md
View
@@ -36,6 +36,27 @@ Options:
## Example
+ The most simple use of `mon(1)` is to simply keep a command running:
+
+```
+$ mon ./myprogram
+mon : pid 50395
+mon : child 50396
+mon : sh -c "./example/program.sh"
+one
+two
+three
+```
+
+ You may daemonize mon and disassociate from the term with `-d`:
+
+```
+$ mon ./myprogram -d
+mon : pid 50413
+```
+
+## Groups of mon
+
`mon(1)` is designed to monitor a single program only, this means a few things,
firstly that a single `mon(1)` may crash and it will not influence other programs,
secondly that the "configuration" for `mon(1)` is simply a shell script,

0 comments on commit 8ef2086

Please sign in to comment.