From ca263f9137e68b14eabf38468d121e180e268ff1 Mon Sep 17 00:00:00 2001 From: Luke Petre Date: Fri, 4 Jan 2013 18:20:49 +0000 Subject: collectd: add launchctl plist Closes #16892. Signed-off-by: Adam Vandenberg --- Library/Formula/collectd.rb | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) (limited to 'Library') diff --git a/Library/Formula/collectd.rb b/Library/Formula/collectd.rb index 9e54b68df..338820864 100644 --- a/Library/Formula/collectd.rb +++ b/Library/Formula/collectd.rb @@ -34,4 +34,33 @@ class Collectd < Formula system "./configure", *args system "make install" end + + def plist; <<-EOS.undent + + + + + KeepAlive + + Label + #{plist_name} + ProgramArguments + + #{sbin}/collectd + -f + -C + #{etc}/collectd.conf + + RunAtLoad + + UserName + #{`whoami`.chomp} + StandardErrorPath + /usr/local/var/log/collectd.log + StandardOutPath + /usr/local/var/log/collectd.log + + + EOS + end end -- cgit v1.2.3