znc: add launchd plist
Closes Homebrew/homebrew#24603. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
This commit is contained in:
parent
092a982745
commit
7e0b03154b
1 changed files with 27 additions and 0 deletions
|
@ -25,4 +25,31 @@ class Znc < Formula
|
|||
system "./configure", *args
|
||||
system "make install"
|
||||
end
|
||||
|
||||
plist_options :manual => "znc --foreground"
|
||||
|
||||
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>ProgramArguments</key>
|
||||
<array>
|
||||
<string>#{bin}/znc</string>
|
||||
<string>--foreground</string>
|
||||
</array>
|
||||
<key>StandardErrorPath</key>
|
||||
<string>#{var}/log/znc.log</string>
|
||||
<key>StandardOutPath</key>
|
||||
<string>#{var}/log/znc.log</string>
|
||||
<key>RunAtLoad</key>
|
||||
<true/>
|
||||
<key>StartInterval</key>
|
||||
<integer>300</integer>
|
||||
</dict>
|
||||
</plist>
|
||||
EOS
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue