<?xml version="1.0" encoding="UTF-8"?>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns="http://purl.org/rss/1.0/" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:syn="http://purl.org/rss/1.0/modules/syndication/" xmlns:admin="http://webns.net/mvcb/">
  <channel rdf:about="http://permalink.gmane.org/gmane.comp.lang.ruby.god">
    <title>gmane.comp.lang.ruby.god</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.ruby.god</link>
    <description/>
    <syn:updatePeriod>hourly</syn:updatePeriod>
    <syn:updateFrequency>1</syn:updateFrequency>
    <syn:updateBase>1901-01-01T00:00+00:00</syn:updateBase>
    <items>
      <rdf:Seq>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.ruby.god/561"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.ruby.god/560"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.ruby.god/559"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.ruby.god/558"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.ruby.god/557"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.ruby.god/556"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.ruby.god/555"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.ruby.god/554"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.ruby.god/553"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.ruby.god/552"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.ruby.god/551"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.ruby.god/550"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.ruby.god/549"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.ruby.god/548"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.ruby.god/547"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.ruby.god/546"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.ruby.god/545"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.ruby.god/544"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.ruby.god/543"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.ruby.god/542"/>
      </rdf:Seq>
    </items>
    <image rdf:resource="http://gmane.org/img/gmane-25t.png"/>
    <textinput rdf:resource=""/>
  </channel>
  <image rdf:about="http://gmane.org/img/gmane-25t.png">
    <title>Gmane</title>
    <url>http://gmane.org/img/gmane-25t.png</url>
    <link>http://gmane.org</link>
  </image>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.ruby.god/561">
    <title>Monitoring Unicorn Workers with God</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.ruby.god/561</link>
    <description>&lt;pre&gt;There seems to be no easy to way monitor unicorn workers with god. Github 
has a hack, where they use a separate thread to monitor the workers, but 
the post is two and a half years old 
(https://github.com/blog/519-unicorn-god).

Have things changed since?

&lt;/pre&gt;</description>
    <dc:creator>Nitesh Goel</dc:creator>
    <dc:date>2012-05-09T19:16:35</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.ruby.god/560">
    <title>Re: Different restart commands based on the restart condition</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.ruby.god/560</link>
    <description>&lt;pre&gt;Hi Nuno
Thanks. What I meant was this:

Currently I can specify a start, stop, and restart command in god.
I want to specify multiple different restart commands.

E.g.
Let's say I am monitoring the thin web server. If my box is out of memory, 
I want to restart with 5 servers, but if my box is out of cpu, I want to 
start with 3 servers (don't ask why .. contrived example).

So ..

w.restart1 = thin restart --servers 5
w.restart2 = thin restart --servers 3

How do I inject the restart command to run in the restart_if block?

On Monday, May 7, 2012 6:23:09 PM UTC-4, Valente wrote:

&lt;/pre&gt;</description>
    <dc:creator>Nitesh Goel</dc:creator>
    <dc:date>2012-05-09T01:59:19</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.ruby.god/559">
    <title>Re: Different restart commands based on the restart condition</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.ruby.god/559</link>
    <description>&lt;pre&gt;Hi Nitesh. Sure you can.
You can find examples in the god homepage but i'll leave you one. You just
need to wrap your conditions in a block.

w.restart_if do |restart|

        #Custom conditon
        restart.condition(:log_watcher) do |c|
          c.monitor_file w.log.to_s
          c.add_regexp(/.+OutOfMemory.+/)
        end
        #Built-in god conditon
        restart.condition(:memory_usage) do |c|
              c.above = 100.megabytes
              c.times = [3, 5] #3 out of 5 measurements
        end
        #Built-in god conditon
        restart.condition(:cpu_usage) do |c|
          c.above = 98.percent
          c.times = 3 # 3 consecutive measurements
        end

end

Happy monitoring.

Best regards,
Nuno Valente.

On Mon, May 7, 2012 at 9:47 AM, Nitesh Goel &amp;lt;me-wfq69V0LymhGBRGhe+f61g&amp;lt; at &amp;gt;public.gmane.org&amp;gt; wrote:


&lt;/pre&gt;</description>
    <dc:creator>Nuno Valente</dc:creator>
    <dc:date>2012-05-07T22:23:09</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.ruby.god/558">
    <title>Different restart commands based on the restart condition</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.ruby.god/558</link>
    <description>&lt;pre&gt;Hey Guys
I am monitoring a process where my restart command is based on the restart 
condition failed. E.g.

If memory usage too high:

w.restart = "command 1"

if cpu usage too high:

w.restart = "command 2"

Is there a way to configure a watch as such?

Thanks.

&lt;/pre&gt;</description>
    <dc:creator>Nitesh Goel</dc:creator>
    <dc:date>2012-05-07T08:47:03</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.ruby.god/557">
    <title>God-rb doesn't auto-daemonize unicorn well?</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.ruby.god/557</link>
    <description>&lt;pre&gt;God stores a wrong pid for auto-demonizing unicorn. I can get things 
working by set the pid file on both unicorn and god. But do I have to do it 
this way? Why god doesn't auto-daemonize unicorn well?

&lt;/pre&gt;</description>
    <dc:creator>Guang-Nan Cheng</dc:creator>
    <dc:date>2012-05-06T09:07:16</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.ruby.god/556">
    <title>god overwrites ".kilobytes" in Rails</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.ruby.god/556</link>
    <description>&lt;pre&gt;Setup:

Gemfile
gem 'god'

rails c
irb: warn: can't alias exit from irb_exit
=&amp;gt; 5120

work fine if I follow https://github.com/mojombo/god/issues/32

Gemfile
gem 'god', :require =&amp;gt; false

rails c
=&amp;gt; 5242880

&lt;/pre&gt;</description>
    <dc:creator>Stefan Adamov</dc:creator>
    <dc:date>2012-04-25T23:28:58</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.ruby.god/555">
    <title>Re: how to start the process</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.ruby.god/555</link>
    <description>&lt;pre&gt;No. God is just a process. You need to create an init.d script to start at
boot time or some other method to boot it and load your recipes.

Best regards,
Nuno Valente.

On Tue, Apr 17, 2012 at 2:42 PM, Gitted &amp;lt;sahmed1020-Re5JQEeQqe8AvxtiuMwx3w&amp;lt; at &amp;gt;public.gmane.org&amp;gt; wrote:


&lt;/pre&gt;</description>
    <dc:creator>Nuno Valente</dc:creator>
    <dc:date>2012-04-17T14:10:24</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.ruby.god/554">
    <title>how to start the process</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.ruby.god/554</link>
    <description>&lt;pre&gt;How does godrb actually start, is there a ubuntu init script that
starts the process and makes sure it starts upon reboots?

&lt;/pre&gt;</description>
    <dc:creator>Gitted</dc:creator>
    <dc:date>2012-04-17T13:42:23</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.ruby.god/553">
    <title>Re: monitor chrome with god</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.ruby.god/553</link>
    <description>&lt;pre&gt;Try adding :

      w.stop = "kill -9 {{PID}}"

      w.behavior(:clean_pid_file)

      w.start_if do |start|
        start.condition(:process_running) do |c|
          c.interval = 30.seconds
          c.running = false
        end
      end

Best regards,
Nuno Valente.

On Mon, Apr 2, 2012 at 2:20 PM, Sheng LUO &amp;lt;sheng.peisi.luo-Re5JQEeQqe8AvxtiuMwx3w&amp;lt; at &amp;gt;public.gmane.org&amp;gt; wrote:


&lt;/pre&gt;</description>
    <dc:creator>Nuno Valente</dc:creator>
    <dc:date>2012-04-06T19:25:41</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.ruby.god/552">
    <title>[fail] never received process exit event</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.ruby.god/552</link>
    <description>&lt;pre&gt;Hi everybody,

I'm a newbie to God. I install and run God on Ubuntu system is fine.

But I get problem when run God on Debian. Run "god check", I got
message: "[fail] never received process exit event".

My system info:

No LSB modules are available.
Distributor ID:Debian
Description:Debian GNU/Linux 6.0.4 (squeeze)
Release:6.0.4
Codename:squeeze

Linux breithorn 2.6.32-5-amd64 #1 SMP Thu Mar 22 17:26:33 UTC 2012
x86_64 GNU/Linux

I have checked cn (connector) kernel module by "lsmod | grep cn":

cn                      4563  0

I don't know why it can't check process exit event.

&lt;/pre&gt;</description>
    <dc:creator>Toan Nguyen</dc:creator>
    <dc:date>2012-04-06T03:36:28</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.ruby.god/551">
    <title>monitor chrome with god</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.ruby.god/551</link>
    <description>&lt;pre&gt;hi there,

My ubuntu runs on 1G ram, where chrome always get fronzen or crashed 
because of flash.
So I want to watch my chrome with god and limit the cpu and memory it 
occupies.
Normally, I can run a chrome by typing "google-chrome" in terminal, so I 
write following god script:

God.watch do |w|
  w.name = "chrome"
  w.start = "/opt/google/chrome/chrome"
  w.keepalive :cpu_max =&amp;gt; 80.percent, :memory_max =&amp;gt; 500.megabytes
end

When I start the script above by "god -c chrome.god -D", it just keep 
opening new chrome.
Doesn't it automatically figure out there is already a chrome running?
What can I do to realize monitoring chrome?

&lt;/pre&gt;</description>
    <dc:creator>Sheng LUO</dc:creator>
    <dc:date>2012-04-02T13:20:40</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.ruby.god/550">
    <title>Re: non-daemon process using Bundler</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.ruby.god/550</link>
    <description>&lt;pre&gt;Hey Pete,

Thanks for the reply.  Surprisingly enough, I resolved this issue by 
letting god handle the log file.  In other words, I changed my god config 
like so:

  w.start     = "bundle exec rake resque:scheduler 
to
  w.start     = "bundle exec rake resque:scheduler"
  w.log       = "#{SHARED_PATH}/log/scheduler.log"

Not sure why that fixed it.  Probably has something to do with Bash/Unix 
process intricacies that I don't fully understand.

&lt;/pre&gt;</description>
    <dc:creator>Christopher J. Bottaro</dc:creator>
    <dc:date>2012-03-18T01:55:43</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.ruby.god/549">
    <title>Re: non-daemon process using Bundler</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.ruby.god/549</link>
    <description>&lt;pre&gt;Hi Chris, 

I'd guess the issue is that god is starting your sh shell and the shell is starting ruby, rather than god.  I am not sure how god deals with processes like these but I'd guess the issue not to be with bundle exec.

I'd suggest running resque scheduler directly without wrapping in sh -c if your environment allows.

here's my w.start command that is confirmed to be working correctly under bundle exec

w.start = "#{BIN_PATH}/bundle exec rake -f #{RAILS_ROOT}/Rakefile resque:scheduler"

Hope this helps.


On Friday, March 16, 2012 at 11:36 AM, Christopher J. Bottaro wrote:


&lt;/pre&gt;</description>
    <dc:creator>Pete Shima</dc:creator>
    <dc:date>2012-03-17T00:42:55</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.ruby.god/548">
    <title>non-daemon process using Bundler</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.ruby.god/548</link>
    <description>&lt;pre&gt;Hello,

I'm having a problem with god trying to watch a non-daemon process that is 
started by "bundle exec".

God starts the process just fine, as seen by ps:

6856 ?        Ss     0:00 sh -c bundle exec rake resque:scheduler &amp;gt;&amp;gt; 
/home/rails/project_a/shared/log/scheduler.log 2&amp;gt;&amp;amp;1
6860 ?        Sl     0:23 ruby 
/home/rails/project_a/shared/bundle/ruby/1.9.1/bin/rake resque:scheduler

The problem is that god is monitoring the first process (6856), so that a 
"god stop" or "god restart" nukes the first process, but the second one 
remains.

Any ideas?  Thanks for the help.

&lt;/pre&gt;</description>
    <dc:creator>Christopher J. Bottaro</dc:creator>
    <dc:date>2012-03-16T18:36:49</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.ruby.god/547">
    <title>Re: God load without start</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.ruby.god/547</link>
    <description>&lt;pre&gt;For the situation where you have a Chef provisioned server (including 
installing/configuring God), but then your app is deployed via Capistrano 
at a later time.

On Monday, December 13, 2010 9:14:27 AM UTC-5, Andrés Mejía wrote:

&lt;/pre&gt;</description>
    <dc:creator>Christopher J. Bottaro</dc:creator>
    <dc:date>2012-03-12T15:29:37</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.ruby.god/546">
    <title>Test issues on Ruby 1.9.x and OS X Lion</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.ruby.god/546</link>
    <description>&lt;pre&gt;I seem to be unable to complete a rake run with 0.12.1, using Ruby 1.9.2 or 1.9.3 on OS 10.7.3.

It hangs at TestEventHandlerOperational: test_operational, in the God::EventHandler.start call. Within that method, it's hanging on ::Process.kill('KILL', pid). When kill is called, the child process is terminated, but sticks around as a zombie, and the kill call never returns.

The tests run normally for me in 1.8.7. 

'god check', which runs similar code, runs fine in 1.9.x.

Can anyone reproduce this issue?

Thanks,

Max

&lt;/pre&gt;</description>
    <dc:creator>Max Lansing</dc:creator>
    <dc:date>2012-02-29T07:53:20</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.ruby.god/545">
    <title>Killing a process doesn't restart</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.ruby.god/545</link>
    <description>&lt;pre&gt;I create the follow solr.god: https://gist.github.com/1870445

The process start fine but if I kill the process, God doesn't restart
the process again. What I miss?

&lt;/pre&gt;</description>
    <dc:creator>Matias</dc:creator>
    <dc:date>2012-02-20T18:18:50</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.ruby.god/544">
    <title>notification on process restart / crash when events are disabled</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.ruby.god/544</link>
    <description>&lt;pre&gt;Hi. I've got a couple of questions:

1) Is this project dead? Does it have an active maintainer who'll be
able to fix bugs?
2) How do I notify our ops team of process restarts or crashes when
god's running with user privileges, thus not having access to events
interface?

Thank you.

&lt;/pre&gt;</description>
    <dc:creator>yuri-PV+6wJWHxzMAvxtiuMwx3w&lt; at &gt;public.gmane.org</dc:creator>
    <dc:date>2012-02-22T16:06:32</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.ruby.god/543">
    <title>Re: Custom Notifications</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.ruby.god/543</link>
    <description>&lt;pre&gt;
A little more context on this:
I set up a very simple test where god was using the above condition.

w.transition(:up, :start) do |on|
 on.condition(:process_exits) do |c|
   LOG.info("Hello world.")
 end
end

and the resulting output is:

I [2012-02-19 18:22:08]  INFO: Loading foo.god
I [2012-02-19 18:22:08]  INFO: Syslog enabled.
I [2012-02-19 18:22:08]  INFO: Using pid file directory: /var/run/god
I [2012-02-19 18:22:08]  INFO: Hello world.
I [2012-02-19 18:22:08]  INFO: Started on drbunix:///tmp/god.17165.sock

So the above code only runs once at start time so my original question
stands.

How do I register a custom notification hook in god?

Cheers,
Dan

&lt;/pre&gt;</description>
    <dc:creator>Dan Cook</dc:creator>
    <dc:date>2012-02-20T02:26:01</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.ruby.god/542">
    <title>Custom Notifications</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.ruby.god/542</link>
    <description>&lt;pre&gt;I need to execute a some ruby code on notification.
We have a central health monitoring service on the box and process
health is just one part of the overall reports.
I would like to put the events into a queue on the disk and have our
health monitoring service slurp up any events and send them to another
centralized server.

I assume I can just do this:

w.transition(:up, :start) do |on|
  on.condition(:process_exits) do |c|
    # custom notification method here....
  end
end

Is this correct?

Cheers,
Dan

&lt;/pre&gt;</description>
    <dc:creator>Dan Cook</dc:creator>
    <dc:date>2012-02-18T19:41:58</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.ruby.god/541">
    <title>rbenv shims</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.ruby.god/541</link>
    <description>&lt;pre&gt;Hi,

What's the correct approach for my God scripts to see my rbenv shims?

God itself starts fine, as I set PATH in /etc/init.d/god:

PATH=/root/.rbenv/shims:/root/.rbenv/bin:$PATH

The individual watchers however do not have the shims in the PATH. I
could just hard code the absolute path to the shim in my watcher, but
I feel there must be a cleaner way?

I also don't see an option for setting PATH in God.

Cheers
Ian


&lt;/pre&gt;</description>
    <dc:creator>ileitch</dc:creator>
    <dc:date>2012-02-16T15:16:34</dc:date>
  </item>
  <textinput rdf:about="http://search.gmane.org/?group=$group=gmane.comp.lang.ruby.god">
    <title>Search Engine</title>
    <description>Search the mailing list at Gmane</description>
    <name>query</name>
    <link>http://search.gmane.org/?group=$group=gmane.comp.lang.ruby.god</link>
  </textinput>
</rdf:RDF>

