From 83ef65e7d4ab83d4ed167c4ea03750fbea96b00c Mon Sep 17 00:00:00 2001 From: Tom Preston-Werner Date: Mon, 9 Jul 2007 09:03:31 -0700 Subject: [PATCH] updated install and run docs --- site/index.html | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/site/index.html b/site/index.html index 0e9abd4..a5f2337 100644 --- a/site/index.html +++ b/site/index.html @@ -218,7 +218,9 @@ code {

Installation

-

God does not yet have a public release. You can read through these docs (which are likely to change), or if you're really antsy, peruse or clone the code from http://repo.or.cz/w/god.git

+

The best way to get god is via rubygems:

+
$ sudo gem install god
+

You can also peruse or clone the code from http://repo.or.cz/w/god.git

Finally, a Config File that Makes Sense

The easiest way to understand how god will make your life better is by looking at a sample config file. The following configuration file is what I use at gravatar.com to keep the mongrels running:

@@ -344,6 +346,16 @@ end

To keep an eye on CPU usage, I've employed the cpu_usage condition. When CPU usage for a Mongrel process is over 50% for 5 consecutive intervals, it will be restarted.

+

Starting God

+ +

To start the god monitoring process simply run the god executable passing in the path to the config file:

+ +
$ god start -c /path/to/config.god
+ +

While you're writing your config file, it can be helpful to run god in the foreground so you can see the log messages. You can do that with:

+ +
$ god run -c /path/to/config.god
+

Extend God with your own Conditions

God was designed from the start to allow you to easily write your own custom conditions, making it simple to add tests that are application specific.

@@ -377,5 +389,12 @@ end

Brought to you by Ruby is Awesome

+ + + \ No newline at end of file -- 2.11.4.GIT