Skip to content

Instantly share code, notes, and snippets.

@migrs
Created January 30, 2012 08:49
Show Gist options
  • Save migrs/1703406 to your computer and use it in GitHub Desktop.
Save migrs/1703406 to your computer and use it in GitHub Desktop.
process checks for nscd
Bluepill.application("system", :log_file => '/var/log/bluepill/system.log') do |app|
app.process('nscd') do |process|
process.pid_file = '/var/run/nscd/nscd.pid'
process.start_command = '/etc/init.d/nscd start'
process.stop_command = '/etc/init.d/nscd stop'
process.restart_command = '/etc/init.d/nscd restart'
process.checks :mem_usage, :every => 10.minutes, :below => 100.megabytes, :times => [3,5]
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment