Skip to content

Commit

Permalink
Release 1.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
tj committed Dec 17, 2012
1 parent 00951a2 commit f44b8fc
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 6 deletions.
5 changes: 5 additions & 0 deletions History.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@

1.2.0 / 2012-12-17
==================

* add passing of PID to the error scripts

1.1.2 / 2012-12-13
==================

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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"],
Expand Down
10 changes: 5 additions & 5 deletions src/mon.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
* Program version.
*/

#define VERSION "1.1.2"
#define VERSION "1.2.0"

/*
* Log prefix.
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit f44b8fc

Please sign in to comment.