add systemd units
This commit is contained in:
parent
83e4782137
commit
2581dd2c74
5 changed files with 124 additions and 0 deletions
29
debian/gitlab-mailroom.service
vendored
Normal file
29
debian/gitlab-mailroom.service
vendored
Normal file
|
@ -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
|
28
debian/gitlab-sidekiq.service
vendored
Normal file
28
debian/gitlab-sidekiq.service
vendored
Normal file
|
@ -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
|
26
debian/gitlab-unicorn.service
vendored
Normal file
26
debian/gitlab-unicorn.service
vendored
Normal file
|
@ -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
|
27
debian/gitlab-workhorse.service
vendored
Normal file
27
debian/gitlab-workhorse.service
vendored
Normal file
|
@ -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
|
14
debian/gitlab.target
vendored
Normal file
14
debian/gitlab.target
vendored
Normal file
|
@ -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
|
Loading…
Reference in a new issue