gitlabhq/gitlabhq — pull request #1464 by jpbot (2012-09-14 18:50:23+00:00)
Title: Patch 1 - Fix for gitlab doesn't start on boot

gitlab doesn't start on boot if you follow the install instructions on Ubuntu (12.04 LTS Server - probably others). Turns out gitlab requires redis-server to be running for gitlab to be able to start. Startup script S20redis-server isn't run until after S20gitlab so gitlab fails to start on boot. Webserver will be up, bad gateway 502 error is usually seen/reported. Starting gitlab manually works (because redis-server has started). This change makes gitlab start after redis-server.

sudo update-rc.d gitlab defaults 70 30