Skip to content

Commit

Permalink
docs
Browse files Browse the repository at this point in the history
  • Loading branch information
tj committed Nov 1, 2012
1 parent e81086e commit 8ef2086
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions Readme.md
Expand Up @@ -36,6 +36,27 @@ Options:


## Example ## 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, `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, 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, secondly that the "configuration" for `mon(1)` is simply a shell script,
Expand Down

0 comments on commit 8ef2086

Please sign in to comment.