Permalink
Browse files

killing navvy

  • Loading branch information...
Jonathan Hoyt Jonathan Hoyt
Jonathan Hoyt authored and Jonathan Hoyt committed Apr 26, 2010
1 parent 07e2c72 commit 6ccdb51a1cc8f97fa44e67657d574a211e34c77c
Showing with 12 additions and 10 deletions.
  1. +2 −0 app/models/playlist.rb
  2. +10 −10 script/jukeman.pill
View
@@ -18,6 +18,8 @@ def destroy
update_attributes(:destroyed_at => Time.zone.now) unless destroyed_at?
end
+ # l = Location.first(:name => APP_CONFIG[:location])
+ # p = Playlist.find(l.playlist_id)
def load
with_mpd do |mpd|
songs.each { |id| mpd.add "http://localhost:3333/gridfs/#{Song.find(id).mp3_id.to_s}" }
View
@@ -15,14 +15,14 @@ Bluepill.application("jukeman", :log_file => "/var/log/bluepill.logg") do |app|
process.checks :flapping, :times => 2, :within => 30.seconds, :retry_in => 20.seconds
end
- app.process("navvy") do |process|
- process.start_command = "/usr/local/bin/rake navvy:work"
- process.daemonize = true
- process.checks :cpu_usage, :every => 10.seconds, :below => 50, :times => 3
- process.checks :mem_usage, :every => 10.seconds, :below => 200.megabytes, :times => [3,5]
- process.start_grace_time = 5.seconds
- process.stop_grace_time = 5.seconds
- process.restart_grace_time = 10.seconds
- process.checks :flapping, :times => 2, :within => 30.seconds, :retry_in => 20.seconds
- end
+ # app.process("navvy") do |process|
+ # process.start_command = "/usr/local/bin/rake navvy:work"
+ # process.daemonize = true
+ # process.checks :cpu_usage, :every => 10.seconds, :below => 50, :times => 3
+ # process.checks :mem_usage, :every => 10.seconds, :below => 200.megabytes, :times => [3,5]
+ # process.start_grace_time = 5.seconds
+ # process.stop_grace_time = 5.seconds
+ # process.restart_grace_time = 10.seconds
+ # process.checks :flapping, :times => 2, :within => 30.seconds, :retry_in => 20.seconds
+ # end
end

0 comments on commit 6ccdb51

Please sign in to comment.