From 9deee01ccba1645b9177573a9ef540e9f9008239 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rn=20=C3=98ivind=20Bj=C3=B8rnsen?= Date: Tue, 29 Sep 2015 17:38:15 +0200 Subject: [PATCH] systemd: create new unit for gitlab-git-http-server. This service is required for HTTP(S) push and pull operations from 8.0 and presumably onwards. --- init/systemd/README.md | 5 +++-- init/systemd/gitlab-git-http.service | 25 +++++++++++++++++++++++++ 2 files changed, 28 insertions(+), 2 deletions(-) create mode 100644 init/systemd/gitlab-git-http.service diff --git a/init/systemd/README.md b/init/systemd/README.md index 993189a..eef9f50 100644 --- a/init/systemd/README.md +++ b/init/systemd/README.md @@ -17,6 +17,7 @@ sudo su cd /etc/systemd/system/ wget -O gitlab-sidekiq.service https://gitlab.com/gitlab-org/gitlab-recipes/raw/master/init/systemd/gitlab-sidekiq.service wget -O gitlab-unicorn.service https://gitlab.com/gitlab-org/gitlab-recipes/raw/master/init/systemd/gitlab-unicorn.service +wget -O gitlab-git-http.service https://gitlab.com/gitlab-org/gitlab-recipes/raw/master/init/systemd/gitlab-git-http.service ``` Reload systemd: @@ -25,11 +26,11 @@ Reload systemd: Start the services: - sudo systemctl start gitlab-sidekiq.service gitlab-unicorn.service + sudo systemctl start gitlab-sidekiq.service gitlab-unicorn.service gitlab-git-http.service Enable them to start at boot: - sudo systemctl enable gitlab-sidekiq.service gitlab-unicorn.service + sudo systemctl enable gitlab-sidekiq.service gitlab-unicorn.service gitlab-git-http.service ## Notes diff --git a/init/systemd/gitlab-git-http.service b/init/systemd/gitlab-git-http.service new file mode 100644 index 0000000..cbf7035 --- /dev/null +++ b/init/systemd/gitlab-git-http.service @@ -0,0 +1,25 @@ +##################################################### +# +# GitLab version : 8.x - 8.x +# Contributors : davispuh, mtorromeo, axilleas, boeserwolf91, Stefan Tatschner (rumpelsepp) +# Downloaded from : https://gitlab.com/gitlab-org/gitlab-recipes/tree/master/init/systemd +# +#################################################### + +[Unit] +Description=Gitlab Git HTTP Worker +Requires=gitlab-unicorn.service +Wants=gitlab-unicorn.service +After=gitlab-unicorn.service + +[Service] +Type=forking +User=git +WorkingDirectory=/home/git/gitlab-git-http-server +SyslogIdentifier=gitlab-git-http-server +PIDFile=/home/git/gitlab/tmp/pids/gitlab-git-http-server.pid + +ExecStart=/home/git/gitlab/bin/daemon_with_pidfile /home/git/gitlab/tmp/pids/gitlab-git-http-server.pid /home/git/gitlab-git-http-server/gitlab-git-http-server -listenUmask 0 -listenNetwork unix -listenAddr /home/git/gitlab/tmp/sockets/gitlab-git-http-server.socket -authBackend http://127.0.0.1:8080 /home/git/repositories >> /home/git/gitlab/log/gitlab-git-http-server.log 2>&1 + +[Install] +WantedBy=multi-user.target