Changing app_root causes init script to throw an error
In 8.4, a new env was added, gitlab_workhorse_dir. When changing the app_root (via /etc/default/gitlab), this causes the script to throw an error. (Although, if set in /etc/default/gitlab, the script will still work).
# /etc/init.d/gitlab restart
/etc/init.d/gitlab: 41: cd: can't cd to /home/git/gitlab/../gitlab-workhorse
/etc/init.d/gitlab: 41: cd: can't cd to /home/git/gitlab/../gitlab-workhorse
Shutting down GitLab Unicorn
Shutting down GitLab Sidekiq
Shutting down gitlab-workhorse
.
GitLab is not running.
Starting GitLab Unicorn
Starting GitLab Sidekiq
Starting gitlab-workhorse
.
The GitLab Unicorn web server with pid 20740 is running.
The GitLab Sidekiq job dispatcher with pid 20795 is running.
The gitlab-workhorse with pid 20771 is running.
GitLab and all its components are up and running.
This directory is defined as a command: cd $app_root/../gitlab-workhorse && pwd
.
This is executed before /etc/default/gitlab is sourced.
Probably it's value should just be changed to $app_root/../gitlab-workhorse
.