From bb4b2e99679bb5ecd05b9b6a672e6c2f3bf36c69 Mon Sep 17 00:00:00 2001 From: Lukas Stabe Date: Wed, 20 Aug 2014 05:33:55 +0200 Subject: mpdscribble: provide launchd plist --- Library/Formula/mpdscribble.rb | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) (limited to 'Library/Formula') diff --git a/Library/Formula/mpdscribble.rb b/Library/Formula/mpdscribble.rb index 01fa6cb0e..e2aad0282 100644 --- a/Library/Formula/mpdscribble.rb +++ b/Library/Formula/mpdscribble.rb @@ -18,4 +18,33 @@ class Mpdscribble < Formula The configuration file was placed in #{etc}/mpdscribble.conf EOS end + + plist_options :manual => "mpdscribble" + + def plist; <<-EOS.undent + + + + + Label + #{plist_name} + WorkingDirectory + #{HOMEBREW_PREFIX} + ProgramArguments + + #{opt_bin}/mpdscribble + --no-daemon + + RunAtLoad + + KeepAlive + + StandardErrorPath + #{var}/log/mpdscribble_err.log + StandardOutPath + #{var}/log/mpdscribble.log + + + EOS + end end -- cgit v1.2.3