Disabling Postgres doesn't remove the sysctl files related to Postgres
Summary
When Postgres is enabled, we add the following sysctl
files:
-rw-r--r--. 1 root root 30 Apr 26 02:22 90-omnibus-gitlab-kernel.sem.conf
-rw-r--r--. 1 root root 24 Apr 26 02:22 90-omnibus-gitlab-kernel.shmall.conf
-rw-r--r--. 1 root root 28 Apr 26 02:22 90-omnibus-gitlab-kernel.shmmax.conf
However disabling Postgres doesn't necessarily remove these files.
Steps to reproduce
- Install GitLab normally.
- Check the following files exists in
/opt/gitlab/embedded/etc/
:
-rw-r--r--. 1 root root 30 Apr 26 02:22 90-omnibus-gitlab-kernel.sem.conf
-rw-r--r--. 1 root root 24 Apr 26 02:22 90-omnibus-gitlab-kernel.shmall.conf
-rw-r--r--. 1 root root 28 Apr 26 02:22 90-omnibus-gitlab-kernel.shmmax.conf
- Disable Postgres by setting
postgresql['enable'] = false
in thegitlab.rb
file. - Run
gitlab-ctl reconfigure
. - Notice the the files still exists.
What is the current bug behavior?
Disabling Postgresql doesn't remove the Postgresql related sysctl files.
What is the expected correct behavior?
Disabling Postgresql should remove the Postgresql related sysctl files.