How do you stop or prevent gitlab from running on startup?
Solution 1
Found the answer. Most of the configuration appears to be in:
/var/opt/gitlab/gitlab-rails/etc
Whose config.yml file mentions gitlab-ctl, which is available everywhere as a command:
gitlab-ctl stop
Stops gitlab fully.
Solution 2
To disable gitlab from autostarting in ubuntu 14.04
echo manual | sudo tee /etc/init/gitlab-runsvdir.override
Related videos on Youtube
Jim T
Jim is a senior software developer with totesport. He is a member of the development team which creates the software for pool betting.
Updated on September 18, 2022Comments
-
Jim T over 1 year
I've installed gitlab on Ubuntu 14.04, from the following deb file:
gitlab_6.9.2-omnibus-1_amd64.deb
It works beautifully. But I want to perform some maintenance on the box without gitlab running, and I can't find anyway to do this.
There is nothing in cron, nothing in /etc/init.d that I can see.
All the documentation points to /home/gitlab as the root folder, where in mine it's /var/opt/gitlab and some others.
I see it's running nginx, postgres & redis. I can kill the individual components, and hopefully that would be enough, but I'd rather it shutdown cleanly, or just not start. These components are not part of the /etc/init.d system ...
Any ideas?
-
Admin about 7 yearssee stackoverflow.com/a/35902817 for systemd based systems
-
-
mjaggard over 8 yearsBut how do I stop it loading at startup?
-
leabut over 6 yearsYes, this is the answere to re-enable it. Because after using the command mdma provided, you wont be able to re-enable gitlab because the default content of gitlab-runsvdir.override will be lost. I had this issue by reading this answere
-
StevenWernerCS over 2 yearsThese stay on after gitlab-ctl stop (how to kill>?) runsv gitlab-workhorse & runsv gitlab-monitor