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