diff --git a/Formula/rtags.rb b/Formula/rtags.rb index 2ccdc70b7a..cc344a9c7c 100644 --- a/Formula/rtags.rb +++ b/Formula/rtags.rb @@ -36,6 +36,36 @@ class Rtags < Formula end end + plist_options :manual => "#{HOMEBREW_PREFIX}/bin/rdm --verbose --inactivity-timeout=300 --log-file=#{HOMEBREW_PREFIX}/var/log/rtags.log" + + def plist; <<-EOS.undent + + + + + Label + #{plist_name} + ProgramArguments + + #{bin}/rdm + --verbose + --launchd + --inactivity-timeout=300 + --log-file=#{var}/log/rtags.log + + Sockets + + Listener + + SockPathName + #{ENV["HOME"]}/.rdm + + + + + EOS + end + test do mkpath testpath/"src" (testpath/"src/foo.c").write <<-EOS.undent