Permalink
Browse files

Merge pull request #76 from msabramo/launchd

Add a sample plist for mananging Graylog2 with launchd on OS X.
  • Loading branch information...
2 parents 3a91f76 + 49eab42 commit 0dfde420682ae137dc453847f4654ad74124d68b @lennartkoopmann lennartkoopmann committed Apr 10, 2012
Showing with 30 additions and 0 deletions.
  1. +30 −0 contrib/distro/mac_os_x/org.graylog2.graylog2-server.plist
@@ -0,0 +1,30 @@
+<?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>

0 comments on commit 0dfde42

Please sign in to comment.