diff options
| author | Lukas Stabe | 2014-08-20 05:33:55 +0200 |
|---|---|---|
| committer | Mike McQuaid | 2014-08-20 12:24:48 +0100 |
| commit | bb4b2e99679bb5ecd05b9b6a672e6c2f3bf36c69 (patch) | |
| tree | 3e5d18d9b89fcd87ddf2a308978fb6cd19d3f698 | |
| parent | ce4f1f52351352a1e87908f519ce429a286d6477 (diff) | |
| download | homebrew-bb4b2e99679bb5ecd05b9b6a672e6c2f3bf36c69.tar.bz2 | |
mpdscribble: provide launchd plist
| -rw-r--r-- | Library/Formula/mpdscribble.rb | 29 |
1 files changed, 29 insertions, 0 deletions
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 + <?xml version="1.0" encoding="UTF-8"?> + <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> + <plist version="1.0"> + <dict> + <key>Label</key> + <string>#{plist_name}</string> + <key>WorkingDirectory</key> + <string>#{HOMEBREW_PREFIX}</string> + <key>ProgramArguments</key> + <array> + <string>#{opt_bin}/mpdscribble</string> + <string>--no-daemon</string> + </array> + <key>RunAtLoad</key> + <true/> + <key>KeepAlive</key> + <true/> + <key>StandardErrorPath</key> + <string>#{var}/log/mpdscribble_err.log</string> + <key>StandardOutPath</key> + <string>#{var}/log/mpdscribble.log</string> + </dict> + </plist> + EOS + end end |
