Skip to content

Commit

Permalink
Merge branch 'master' of github.com:visionmedia/mon
Browse files Browse the repository at this point in the history
  • Loading branch information
tj committed Dec 13, 2012
2 parents 2e9a9f4 + d2dbc1a commit c3cad12
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
6 changes: 3 additions & 3 deletions Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ mon : pid 50413
`mon(1)` will continue to attempt restarting your program unless the maximum number
of `--attempts` has been exceeded within 60 seconds. Each time a restart is performed
the `--on-restart` command is executed, and when `mon(1)` finally bails the `--on-error`
command is then executed before mon itself exits and gives up.
command is then executed before mon itself exits and gives up.

For example the following will echo "hey" three times before mon realizes that
the program is unstable, since it's exiting immediately, thus finally invoking
Expand Down Expand Up @@ -122,7 +122,7 @@ mon -d "node $app/image" -p $pids/image-1.pid
mon -d "node $app/image-broker" -p $pids/image-broker.pid
```

I highly recommend checking out jgallen23's [mongroup(1)]([mongroup(1)](https://github.com/jgallen23/mongroup),
I highly recommend checking out jgallen23's [mongroup(1)](https://github.com/jgallen23/mongroup),
which provides a great interface for managing any number of `mon(1)` instances.

## Logs
Expand All @@ -139,7 +139,7 @@ mon -d "node $app/image-broker" -p $pids/image-broker.pid
## Links

Tools built with `mon(1)`:

- [mongroup(1)](https://github.com/jgallen23/mongroup) - monitor a group of processes

# License
Expand Down
3 changes: 1 addition & 2 deletions src/mon.c
Original file line number Diff line number Diff line change
Expand Up @@ -408,7 +408,6 @@ on_status(command_t *self) {

static void
on_prefix(command_t *self) {
monitor_t *monitor = (monitor_t *) self->data;
prefix = self->arg;
}

Expand Down Expand Up @@ -500,4 +499,4 @@ main(int argc, char **argv){
start(cmd, &monitor);

return 0;
}
}

0 comments on commit c3cad12

Please sign in to comment.