From 5da350f856e91d6c0350cd27a10737ee3fc80e83 Mon Sep 17 00:00:00 2001 From: Quentin ADAM Date: Wed, 14 Oct 2015 22:46:20 +0000 Subject: [PATCH 1/2] add mailroom service --- init/systemd/gitlab-mailroom.service | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 init/systemd/gitlab-mailroom.service diff --git a/init/systemd/gitlab-mailroom.service b/init/systemd/gitlab-mailroom.service new file mode 100644 index 0000000..00bf741 --- /dev/null +++ b/init/systemd/gitlab-mailroom.service @@ -0,0 +1,28 @@ +##################################################### +# +# 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 mailroom Worker +Requires=gitlab-unicorn.service +Wants=gitlab-unicorn.service +After=gitlab-unicorn.service + +[Service] +User=git +Environment=RAILS_ENV=production +WorkingDirectory=/home/git/gitlab +SyslogIdentifier=gitlab-mailroom +PIDFile=/home/git/gitlab/tmp/pids/gitlab-mailroom.pid +Type=oneshot +RemainAfterExit=yes + +ExecStart=/home/git/gitlab/bin/mail_room start +ExecStop=/home/git/gitlab/bin/mail_room stop + +[Install] +WantedBy=multi-user.target \ No newline at end of file From ee40c952edb89ae6f08c22e314722852c961b1e2 Mon Sep 17 00:00:00 2001 From: Quentin ADAM Date: Wed, 14 Oct 2015 22:47:18 +0000 Subject: [PATCH 2/2] update readme --- init/systemd/README.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/init/systemd/README.md b/init/systemd/README.md index eef9f50..2d31bcf 100644 --- a/init/systemd/README.md +++ b/init/systemd/README.md @@ -18,6 +18,7 @@ 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 +wget -O gitlab-git-http.service https://gitlab.com/gitlab-org/gitlab-recipes/raw/master/init/systemd/gitlab-mailroom.service ``` Reload systemd: @@ -26,14 +27,14 @@ Reload systemd: Start the services: - sudo systemctl start gitlab-sidekiq.service gitlab-unicorn.service gitlab-git-http.service + sudo systemctl start gitlab-sidekiq.service gitlab-unicorn.service gitlab-git-http.service gitlab-mailroom.service Enable them to start at boot: - sudo systemctl enable gitlab-sidekiq.service gitlab-unicorn.service gitlab-git-http.service + sudo systemctl enable gitlab-sidekiq.service gitlab-unicorn.service gitlab-git-http.service gitlab-mailroom.service ## Notes * If you installed GitLab in other path than `/home/git/gitlab` change the service files accordingly. -* `/etc/systemd/system/` have a higher precedence over `/usr/lib/systemd/system`. +* `/etc/systemd/system/` have a higher precedence over `/usr/lib/systemd/system`. \ No newline at end of file