Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Gitlab LaunchD Startup Script
<?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>EnvironmentVariables</key>
<dict>
<key>PATH</key>
<string>/usr/local/Cellar/ruby/1.9.3-p125/bin:/usr/local/share/npm/bin:/usr/local/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/local/share/npm/bin:/usr/local/sbin:/usr/X11/bin:/Users/gitlab/.rvm/bin</string>
</dict>
<key>KeepAlive</key>
<true/>
<key>Label</key>
<string>com.gitlab.gitlab</string>
<key>ProgramArguments</key>
<array>
<string>bundle</string>
<string>exec</string>
<string>unicorn_rails</string>
<string>-c</string>
<string>config/unicorn.rb</string>
<string>-E</string>
<string>production</string>
<string>-D</string>
</array>
<key>RunAtLoad</key>
<true/>
<key>UserName</key>
<string>gitlab</string>
<key>WorkingDirectory</key>
<string>/Users/gitlab/gitlab</string>
</dict>
</plist>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.