summaryrefslogtreecommitdiff
path: root/gitlab-server/usr/share/gitlab-install/systemd-units/gitlab-ci-sidekiq.service
blob: 9a1a82d2ea451151d5f42d8464c361d13f6efe90 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#####################################################
#
# GitLab version : 5.x - 6.x
# Contributors : davispuh, mtorromeo, axilleas, boeserwolf91
# Downloaded from : https://github.com/gitlabhq/gitlab-recipes/tree/master/init/systemd
#
####################################################
 
[Unit]
Description=GitLab CI Sidekiq Worker
 
[Service]
Type=forking
User=gitlab_ci
WorkingDirectory=/home/gitlab_ci/gitlab-ci
Environment=RAILS_ENV=production
SyslogIdentifier=gitlab-ci-sidekiq
PIDFile=/home/gitlab_ci/gitlab-ci/tmp/pids/sidekiq.pid
 
ExecStart=/usr/bin/bundle exec "sidekiq -q post_receive,mailer,system_hook,project_web_hook,gitlab_shell,common,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/gitlab_ci/gitlab-ci/tmp/pids/sidekiq.pid >> /home/gitlab_ci/gitlab-ci/log/sidekiq.log 2>&1"
 
[Install]
WantedBy=gitlab.target