Skip to content

Fix disabled service up

DJ Mountney requested to merge fix-disabled-service-up into master

Switch to using the named sv service names to check for service_up?

Fixes: https://gitlab.com/gitlab-org/omnibus-gitlab/issues/2245 Fixes: https://gitlab.com/gitlab-org/omnibus-gitlab/issues/2244

This calls the same command gitlab-ctl status service_name would call (source), without having to wrap it in the rest of the gitlab-ctl logic.

These init/service_names are actually just symlinks to the sv command (source)

But because they use a different basename, they give us the exit codes that we want to also keep the fix for: https://gitlab.com/gitlab-org/omnibus-gitlab/issues/2100

And they avoid the exit 0 logic from gitlab-ctl for disabled/unkown services: (source)

cc\ @stanhu

Merge request reports