aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorVitaliy Gladkevitch2013-12-11 14:15:45 -0500
committerAdam Vandenberg2014-02-21 21:13:49 -0800
commit78b4d7d76b79232d3ba36e7e5ee67fe92c53f48b (patch)
tree586de52829beba21d18052dd00a41674cb19ba48 /Library
parentfb717c2a4355a1afceb16e815039061813e9739e (diff)
downloadhomebrew-78b4d7d76b79232d3ba36e7e5ee67fe92c53f48b.tar.bz2
nrpe: add startup plist
Closes #25148. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/nrpe.rb25
1 files changed, 25 insertions, 0 deletions
diff --git a/Library/Formula/nrpe.rb b/Library/Formula/nrpe.rb
index df1888099..b07f4eec8 100644
--- a/Library/Formula/nrpe.rb
+++ b/Library/Formula/nrpe.rb
@@ -28,6 +28,31 @@ class Nrpe < Formula
(var+'run').mkpath
end
+ def plist; <<-EOS.undent
+ <?xml version="1.0" encoding="UTF-8"?>
+ <!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+ <plist version="1.0">
+ <dict>
+ <key>Label</key>
+ <string>org.nrpe.agent</string>
+ <key>ProgramArguments</key>
+ <array>
+ <string>#{HOMEBREW_PREFIX}/bin/nrpe</string>
+ <string>-c</string>
+ <string>#{etc}/nrpe.cfg</string>
+ <string>-d</string>
+ </array>
+ <key>RunAtLoad</key>
+ <true/>
+ <key>ServiceDescription</key>
+ <string>Homebrew NRPE Agent</string>
+ <key>Debug</key>
+ <true/>
+ </dict>
+ </plist>
+ EOS
+ end
+
def caveats
<<-EOS.undent
The nagios plugin check_nrpe has been installed in: