Remove gitlab-unicorn.service and install gitlab-puma.service
This commit is contained in:
parent
956a715cff
commit
68b2dd3dc0
3 changed files with 2 additions and 23 deletions
21
debian/gitlab.gitlab-unicorn.service
vendored
21
debian/gitlab.gitlab-unicorn.service
vendored
|
@ -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
|
2
debian/gitlab.postinst
vendored
2
debian/gitlab.postinst
vendored
|
@ -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
2
debian/rules
vendored
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue