diff options
Diffstat (limited to 'Library')
| -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 |
