Remove gitlab-unicorn.service and install gitlab-puma.service

This commit is contained in:
Pirate Praveen 2020-08-20 23:29:31 +05:30
parent 956a715cff
commit 68b2dd3dc0
3 changed files with 2 additions and 23 deletions

View file

@ -1,21 +0,0 @@
[Unit]
Description=GitLab Unicorn Server
PartOf=gitlab.target
Requires=redis-server.service
Wants=postgresql.service
After=redis-server.service postgresql.service
PartOf=gitlab.service
ReloadPropagatedFrom=gitlab.service
[Service]
Type=simple
WorkingDirectory=/usr/share/gitlab
EnvironmentFile=/etc/gitlab/gitlab-debian.conf
EnvironmentFile=-/etc/default/gitlab
SyslogIdentifier=gitlab-unicorn
ExecStart=/usr/bin/bundle exec unicorn_rails -c config/unicorn.rb -E $RAILS_ENV
ExecReload=/bin/kill -USR2 $MAINPID
Restart=on-abnormal
[Install]
WantedBy=gitlab.target

View file

@ -260,7 +260,7 @@ case "$1" in
fi
# Override User for systemd services
for service in mailroom unicorn sidekiq workhorse; do
for service in mailroom puma sidekiq workhorse; do
path=/etc/systemd/system/gitlab-${service}.service.d
mkdir -p $path
if [ -e $path/override.conf ]; then

2
debian/rules vendored
View file

@ -18,7 +18,7 @@ override_dh_install:
override_dh_installinit:
dh_installinit --no-start -p gitlab --name=gitlab-sidekiq
dh_installinit --no-start -p gitlab --name=gitlab-unicorn
dh_installinit --no-start -p gitlab --name=gitlab-puma
dh_installinit --no-start -p gitlab --name=gitlab-mailroom
dh_installinit --no-start -p gitlab --name=gitlab-workhorse
dh_installinit