Skip to content
Snippets Groups Projects

Add redis-server init.d dependency - fixes #598

Merged gitlab-qa-bot requested to merge github/fork/abevoelker/update-init-script into master

Created by: abevoelker

The documentation's example init.d script apparently will fail on system startup if redis-server isn't started first (see #598 (closed)). I added a startup dependency for redis-server to fix this (also replaced unicorn meta info with gitlab while I was there).

However, the init.d script will have to be added to system boot using insserv instead of update-rc.d to take advantage of dependency resolution.

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • Created by: abevoelker

    Well, it might not fix the entire issue, but should fix @arenard's issue, anyway.

    By Administrator on 2012-04-02T00:13:37 (imported from GitLab project)

    By Administrator on 2012-04-02T00:13:37 (imported from GitLab)

  • Created by: arenard

    I tried the proposed solution and I confirm this is solving my issue.

    I already tried to add redis-server as a dependency in init script but it didn't work because of update-rc.d instead of insserv.

    Thanks you.

    By Administrator on 2012-04-02T08:46:17 (imported from GitLab project)

    By Administrator on 2012-04-02T08:46:17 (imported from GitLab)

  • gitlab-qa-bot
323 323
324 324 When server is rebooted then gitlab must starting:
325 325
326 sudo update-rc.d gitlab defaults
326 sudo insserv gitlab
  • Created by: dzaporozhets

    @vsizov I'm going to merge this one

    By Administrator on 2012-04-03T15:48:16 (imported from GitLab project)

    By Administrator on 2012-04-03T15:48:16 (imported from GitLab)

  • gitlab-qa-bot
  • 323 323
    324 324 When server is rebooted then gitlab must starting:
    325 325
    326 sudo update-rc.d gitlab defaults
    326 sudo insserv gitlab
    • Created by: vsizov

      ok

      By Administrator on 2012-04-04T10:40:43 (imported from GitLab project)

      By Administrator on 2012-04-04T10:40:43 (imported from GitLab)

  • Created by: craSH

    This issue still exists for me on Ubuntu 12.04, following today's installation.md - the fix for me was to change the start/kill priority of the gitlab initscript as follows:

    sudo update-rc.d gitlab defaults 70 30

    Because redis-server is installed with the default priority (20/20)

    By Administrator on 2012-09-08T00:22:23 (imported from GitLab project)

    By Administrator on 2012-09-08T00:22:23 (imported from GitLab)

  • Please register or sign in to reply
    Loading