[DRE-commits] [gitlab] 02/13: add systemd units
Praveen Arimbrathodiyil
praveen at moszumanska.debian.org
Thu Feb 4 11:02:12 UTC 2016
This is an automated email from the git hooks/post-receive script.
praveen pushed a commit to branch master
in repository gitlab.
commit 2581dd2c74f8a447b67437fec8c053d96ac5cf61
Author: Praveen Arimbrathodiyil <praveen at debian.org>
Date: Thu Feb 4 13:32:45 2016 +0530
add systemd units
---
debian/gitlab-mailroom.service | 29 +++++++++++++++++++++++++++++
debian/gitlab-sidekiq.service | 28 ++++++++++++++++++++++++++++
debian/gitlab-unicorn.service | 26 ++++++++++++++++++++++++++
debian/gitlab-workhorse.service | 27 +++++++++++++++++++++++++++
debian/gitlab.target | 14 ++++++++++++++
5 files changed, 124 insertions(+)
diff --git a/debian/gitlab-mailroom.service b/debian/gitlab-mailroom.service
new file mode 100644
index 0000000..3e9c954
--- /dev/null
+++ b/debian/gitlab-mailroom.service
@@ -0,0 +1,29 @@
+#####################################################
+#
+# 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
+PartOf=gitlab.target
+Requires=gitlab-unicorn.service
+Wants=gitlab-unicorn.service
+After=gitlab-unicorn.service
+
+[Service]
+User=gitlab
+WorkingDirectory=/usr/share/gitlab
+EnvironmentFile=/etc/gitlab/gitlab-debian.conf
+SyslogIdentifier=gitlab-mailroom
+PIDFile=/usr/share/gitlab/tmp/pids/gitlab-mailroom.pid
+Type=oneshot
+RemainAfterExit=yes
+
+ExecStart=/usr/share/gitlab/bin/mail_room start
+ExecStop=/usr/share/gitlab/bin/mail_room stop
+
+[Install]
+WantedBy=multi-user.target
diff --git a/debian/gitlab-sidekiq.service b/debian/gitlab-sidekiq.service
new file mode 100644
index 0000000..203fc27
--- /dev/null
+++ b/debian/gitlab-sidekiq.service
@@ -0,0 +1,28 @@
+#####################################################
+#
+# GitLab version : 5.x - 7.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 Sidekiq Worker
+PartOf=gitlab.target
+Requires=redis.service
+Wants=postgresql.service
+After=redis.service postgresql.service
+
+[Service]
+Type=forking
+User=gitlab
+WorkingDirectory=/usr/share/gitlab
+EnvironmentFile=/etc/gitlab/gitlab-debian.conf
+SyslogIdentifier=gitlab-sidekiq
+PIDFile=/usr/share/gitlab/tmp/pids/sidekiq.pid
+
+ExecStart=/usr/bin/bundle exec "sidekiq -d -q archive_repo -q post_receive -q mailers -q system_hook -q incoming_email -q project_web_hook -q gitlab_shell -q common -q default -e production -P tmp/pids/sidekiq.pid -d -L log/sidekiq.log >> log/sidekiq.log 2>&1"
+ExecStop=/usr/bin/bundle exec "sidekiqctl stop /home/git/gitlab/tmp/pids/sidekiq.pid >> /home/git/gitlab/log/sidekiq.log 2>&1"
+
+[Install]
+WantedBy=multi-user.target
diff --git a/debian/gitlab-unicorn.service b/debian/gitlab-unicorn.service
new file mode 100644
index 0000000..107b8da
--- /dev/null
+++ b/debian/gitlab-unicorn.service
@@ -0,0 +1,26 @@
+#####################################################
+#
+# GitLab version : 5.x - 7.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 Unicorn Server
+PartOf=gitlab.target
+Requires=redis.service
+Wants=postgresql.service
+After=redis.service postgresql.service
+
+[Service]
+User=gitlab
+WorkingDirectory=/usr/share/gitlab
+EnvironmentFile=/etc/gitlab/gitlab-debian.conf
+SyslogIdentifier=gitlab-unicorn
+PIDFile=/usr/share/gitlab/tmp/pids/unicorn.pid
+
+ExecStart=/usr/bin/bundle exec "unicorn_rails -D -c /usr/share/gitlab/config/unicorn.rb -E production"
+
+[Install]
+WantedBy=multi-user.target
diff --git a/debian/gitlab-workhorse.service b/debian/gitlab-workhorse.service
new file mode 100644
index 0000000..a5f07aa
--- /dev/null
+++ b/debian/gitlab-workhorse.service
@@ -0,0 +1,27 @@
+#####################################################
+#
+# GitLab version : 8.2 - 8.x
+# Contributors : bjorn-oivind
+# Downloaded from : https://gitlab.com/gitlab-org/gitlab-recipes/tree/master/init/systemd
+#
+####################################################
+
+[Unit]
+Description=Gitlab Workhorse handles slow HTTP requests for Gitlab.
+PartOf=gitlab.target
+Requires=gitlab-unicorn.service
+Wants=gitlab-unicorn.service
+After=gitlab-unicorn.service
+
+[Service]
+Type=forking
+User=gitlab
+WorkingDirectory=/usr/share/gitlab
+EnvironmentFile=/etc/gitlab/gitlab-debian.conf
+SyslogIdentifier=gitlab-workhorse
+PIDFile=/usr/share/gitlab/tmp/pids/gitlab-workhorse.pid
+
+ExecStart=/usr/share/gitlab/bin/daemon_with_pidfile /usr/share/gitlab/tmp/pids/gitlab-workhorse.pid gitlab-workhorse -listenUmask 0 -listenNetwork unix -listenAddr /usr/share/gitlab/tmp/sockets/gitlab-workhorse.socket -authBackend http://127.0.0.1:8080 -authSocket /usr/share/gitlab/tmp/sockets/gitlab.socket -documentRoot /usr/share/gitlab/public >> /usr/share/gitlab/log/gitlab-workhorse.log 2>&1
+
+[Install]
+WantedBy=multi-user.target
diff --git a/debian/gitlab.target b/debian/gitlab.target
new file mode 100644
index 0000000..d022cc2
--- /dev/null
+++ b/debian/gitlab.target
@@ -0,0 +1,14 @@
+#####################################################
+#
+# GitLab version : 5.x - 7.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 Service
+Requires=gitlab-unicorn.service gitlab-sidekiq.service gitlab-mailroom.service gitlab-workhorse.service
+
+[Install]
+WantedBy=multi-user.target
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/gitlab.git
More information about the Pkg-ruby-extras-commits
mailing list