Skip to content
Snippets Groups Projects

Update init.d script

Merged gitlab-qa-bot requested to merge github/fork/rezigned/feature/update-init.d into master

Created by: rezigned

The original init.d script uses a fixed username (e.g. git). Which is not flexible when we using other user. So, I've updated it to use $APP_USER variable instead and wrap it in a function to reduce repetitive codes.

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: coveralls

    Coverage Status

    Coverage remained the same when pulling 76d958eb on rezigned:feature/update-init.d into 25d5c1f6 on gitlabhq:master.

    By Administrator on 2013-05-09T06:03:46 (imported from GitLab project)

    By Administrator on 2013-05-09T06:03:46 (imported from GitLab)

  • Created by: dzaporozhets

    thanks

    By Administrator on 2013-05-09T06:51:59 (imported from GitLab project)

    By Administrator on 2013-05-09T06:51:59 (imported from GitLab)

  • Created by: rezigned

    @randx I've got a question about the restart process in this script. Right now it only restarts sidekiq process but not the web server puma. I think it should restart the web server too, but maybe you have some reason behind that.

    I had some problem where I updated Gitlab's config and then run /etc/init.d/gitlab restart but the config is not reloaded. So I have to run stop and start every time.

    I can help update the script if you want it to restart the server too.

    By Administrator on 2013-05-09T07:24:02 (imported from GitLab project)

    By Administrator on 2013-05-09T07:24:02 (imported from GitLab)

  • Created by: hiroponz

    @rezigned Related to https://github.com/gitlabhq/gitlab-recipes/pull/77.

    By Administrator on 2013-05-09T07:38:57 (imported from GitLab project)

    By Administrator on 2013-05-09T07:38:57 (imported from GitLab)

  • Created by: rezigned

    Sorry, @hiroponz maybe I misunderstood, from that link it only mentions about sidekiq process. But my question is why it doesn't stop/start puma too?

    By Administrator on 2013-05-09T10:44:03 (imported from GitLab project)

    By Administrator on 2013-05-09T10:44:03 (imported from GitLab)

  • Created by: hiroponz

    @rezigned Sorry, I have mistook. I have no idea about your question. For reference Puma Restart

    By Administrator on 2013-05-09T10:53:48 (imported from GitLab project)

    By Administrator on 2013-05-09T10:53:48 (imported from GitLab)

Please register or sign in to reply
Loading