nrpe: add startup plist

Closes Homebrew/homebrew#25148.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
This commit is contained in:
Vitaliy Gladkevitch 2013-12-11 14:15:45 -05:00 committed by Adam Vandenberg
parent 838737eec2
commit 6ba9ae9e0e

View file

@ -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: