From f44b8fcea9cd4ed6f86e62c8c5dd9b225179dc18 Mon Sep 17 00:00:00 2001 From: TJ Holowaychuk Date: Mon, 17 Dec 2012 15:14:51 -0800 Subject: [PATCH] Release 1.2.0 --- History.md | 5 +++++ package.json | 2 +- src/mon.c | 10 +++++----- 3 files changed, 11 insertions(+), 6 deletions(-) diff --git a/History.md b/History.md index 98c1945..ea3358d 100644 --- a/History.md +++ b/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 ================== diff --git a/package.json b/package.json index 6e373fb..d6fb2ea 100644 --- a/package.json +++ b/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"], diff --git a/src/mon.c b/src/mon.c index 7de84ac..75da514 100644 --- a/src/mon.c +++ b/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(" 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;