From f8a16db73867907b5c6c3ec76d737faef36d204e Mon Sep 17 00:00:00 2001 From: Michel Martens Date: Mon, 26 Nov 2012 11:02:35 -0300 Subject: [PATCH 1/2] Fix reference to mongroup. --- Readme.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Readme.md b/Readme.md index af98050..fc89556 100644 --- a/Readme.md +++ b/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 From 0e709a18fd85615d61f8208063128ed56f718e76 Mon Sep 17 00:00:00 2001 From: Artur Dryomov Date: Sun, 2 Dec 2012 04:22:49 +0300 Subject: [PATCH 2/2] Remove unused variable. --- src/mon.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/mon.c b/src/mon.c index 921f175..09cdbf8 100644 --- a/src/mon.c +++ b/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; -} \ No newline at end of file +}