Created
April 8, 2012 06:26
-
-
Save msabramo/2335210 to your computer and use it in GitHub Desktop.
OS X launchd plist for running graylog2-server
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?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>org.graylog2.graylog2-server</string> | |
| <key>ProgramArguments</key> | |
| <array> | |
| <string>java</string> | |
| <string>-jar</string> | |
| <string>/usr/local/Cellar/graylog2-server/0.9.6/graylog2-server.jar</string> | |
| <string>-f</string> | |
| <string>/usr/local/etc/graylog2.conf</string> | |
| <string>-p</string> | |
| <string>/tmp/graylog2.pid</string> | |
| </array> | |
| <key>RunAtLoad</key> | |
| <true/> | |
| <key>KeepAlive</key> | |
| <false/> | |
| <key>UserName</key> | |
| <string>root</string> | |
| <key>WorkingDirectory</key> | |
| <string>/usr/local</string> | |
| <key>StandardErrorPath</key> | |
| <string>/usr/local/var/log/graylog2-server/output.log</string> | |
| <key>StandardOutPath</key> | |
| <string>/usr/local/var/log/graylog2-server/output.log</string> | |
| </dict> | |
| </plist> |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I used this as the basis for a pull request to add launchd support to the graylog2-server homebrew formula.
And I submitted a pull request to graylog2-server with this as a sample for the
contribdirectory as well.