Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • G gitlabhq1
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 21
    • Issues 21
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 12
    • Merge requests 12
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Infrastructure Registry
  • Analytics
    • Analytics
    • CI/CD
    • Repository
    • Value stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • gpt
  • large_projects
  • gitlabhq1
  • Issues
  • #9307

Closed
Open
Created May 18, 2015 by Administrator@rootOwner

the init script of gitlab is not workable

Created by: stevenkaiwang

Hi, When i used the gitlab init scrip, i met the below issue: Hope to get your help to fix this issue. Thanks in advance!

OS: centos 7 gitlab: 7.10.4

systemctl start gitlab

/etc/rc.d/init.d/gitlab:line 171: bin/web: No such file or directory /etc/rc.d/init.d/gitlab:行178: bin/background_jobs: No such file or directory

gitlab init script is below: cp /opt/gitlab/embedded/service/gitlab-rails/lib/support/init.d/gitlab /etc/init.d/gitlab vi /etc/init.d/gitlab :

Then check if the service is running. If it is: don't start again.

if [ "$web_status" = "0" ]; then echo "The Unicorn web server already running with pid $wpid, not restarting." else # Remove old socket if it exists rm -f "$socket_path"/gitlab.socket 2>/dev/null # Start the web server RAILS_ENV=$RAILS_ENV bin/web start #171 (closed) fi

If sidekiq is already running, don't start it again.

if [ "$sidekiq_status" = "0" ]; then echo "The Sidekiq job dispatcher is already running with pid $spid, not restarting" else RAILS_ENV=$RAILS_ENV bin/background_jobs start & #178 (closed) fi

BR, Steven

Assignee
Assign to
Time tracking