Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Release 1.2.0

  • Loading branch information...
commit f44b8fcea9cd4ed6f86e62c8c5dd9b225179dc18 1 parent 00951a2
@tj authored
Showing with 11 additions and 6 deletions.
  1. +5 −0 History.md
  2. +1 −1  package.json
  3. +5 −5 src/mon.c
View
5 History.md
@@ -1,4 +1,9 @@
+1.2.0 / 2012-12-17
+==================
+
+ * add passing of PID to the error scripts
+
1.1.2 / 2012-12-13
==================
View
2  package.json
@@ -1,6 +1,6 @@
{
"name": "mon",
- "version": "1.1.2",
+ "version": "1.2.0",
"repo": "visionmedia/mon",
"description": "Simple process monitoring",
"keywords": ["process", "monitoring", "monitor", "availability"],
View
10 src/mon.c
@@ -24,7 +24,7 @@
* Program version.
*/
-#define VERSION "1.1.2"
+#define VERSION "1.2.0"
/*
* Log prefix.
@@ -483,23 +483,23 @@ main(int argc, char **argv){
// command required
if (!program.argc) error("<cmd> required");
const char *cmd = program.argv[0];
-
+
// signals
signal(SIGTERM, graceful_exit);
signal(SIGQUIT, graceful_exit);
-
+
// daemonize
if (monitor.daemon) {
daemonize();
redirect_stdio_to(monitor.logfile);
}
-
+
// write mon pidfile
if (monitor.mon_pidfile) {
log("write mon pid to %s", monitor.mon_pidfile);
write_pidfile(monitor.mon_pidfile, getpid());
}
-
+
start(cmd, &monitor);
return 0;
Please sign in to comment.
Something went wrong with that request. Please try again.