Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge branch 'master' of github.com:visionmedia/mon

  • Loading branch information...
commit c3cad124f319016e7fc3f76b30d5a63595bca075 2 parents 2e9a9f4 + d2dbc1a
@tj authored
Showing with 4 additions and 5 deletions.
  1. +3 −3 Readme.md
  2. +1 −2  src/mon.c
View
6 Readme.md
@@ -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
@@ -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
@@ -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
View
3  src/mon.c
@@ -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;
}
@@ -500,4 +499,4 @@ main(int argc, char **argv){
start(cmd, &monitor);
return 0;
-}
+}
Please sign in to comment.
Something went wrong with that request. Please try again.