GitLab: How to disable automatic startup?
Asked Answered
C

1

25

I have not found a way to disable the automatic startup and it ends up using too much RAM when I'm not using.

The init files are not inside /etc/init or init.d.

I try update-rc.d gitlab remove and no results.

I am using GitLab 8.5.4 in Debian 8.

Cuckooflower answered 7/3, 2016 at 7:35 Comment(3)
Are you sure that you do not have a file /etc/init/gitlab-runsvdir.conf ?Mcguigan
Thank for answer. No. I do not have any file starting with "gi" in /etc/init or init.d.Cuckooflower
I install with this tutorial: packages.gitlab.com/gitlab/gitlab-ce/install - Manual, deb sectionCuckooflower
C
61

Problem is solved!

I contacted the GitLab by their official page on Facebook and here is the answer.

I am using GitLab in a Desktop and it was using ~700MB. If you too want turn off GitLab on startup, just execute in a terminal:

sudo systemctl disable gitlab-runsvdir.service
Cuckooflower answered 9/3, 2016 at 21:18 Comment(3)
This seemed to undo itself some time down the line, possibly after an update.Crummy
As one might guess, re-enable GitLab using sudo systemctl enable gitlab-runsvdir.service.Bisector
This is really not ideal, as this disabled the gitlab-ctl command completely. There has to be a way to disable auto booting without disabling the ctl command as well, requiring the restoration of the service before being able to work with gitlab again.Master

© 2022 - 2024 — McMap. All rights reserved.