parent
d4e21add91
commit
5856d4977e
|
@ -58,6 +58,37 @@ class Orientdb < Formula
|
|||
EOS
|
||||
end
|
||||
|
||||
plist_options :manual => "orientdb start"
|
||||
|
||||
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>KeepAlive</key>
|
||||
<dict>
|
||||
<key>SuccessfulExit</key>
|
||||
<false/>
|
||||
</dict>
|
||||
<key>Label</key>
|
||||
<string>homebrew.mxcl.orientdb</string>
|
||||
<key>ProgramArguments</key>
|
||||
<array>
|
||||
<string>/usr/local/opt/orientdb/libexec/bin/server.sh</string>
|
||||
</array>
|
||||
<key>RunAtLoad</key>
|
||||
<true/>
|
||||
<key>WorkingDirectory</key>
|
||||
<string>/usr/local/var</string>
|
||||
<key>StandardErrorPath</key>
|
||||
<string>/usr/local/var/log/orientdb/serror.log</string>
|
||||
<key>StandardOutPath</key>
|
||||
<string>/usr/local/var/log/orientdb/sout.log</string>
|
||||
</dict>
|
||||
</plist>
|
||||
EOS
|
||||
end
|
||||
|
||||
test do
|
||||
ENV["CONFIG_FILE"] = "#{testpath}/orientdb-server-config.xml"
|
||||
ENV["ORIENTDB_ROOT_PASSWORD"] = "orientdb"
|
||||
|
|
Loading…
Reference in New Issue