summarylogtreecommitdiffstats
path: root/gitlab-ci-sidekiq.service
blob: fc82cf732a75156e369aac7df33786fccdc0fc79 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
[Unit]
Description=GitLab CI Sidekiq Worker

[Service]
Type=forking
User=gitlab_ci
WorkingDirectory=<DATADIR>
Environment=RAILS_ENV=production PATH=/opt/ruby2.1/bin:/usr/bin
SyslogIdentifier=gitlab-ci-sidekiq
PIDFile=/var/run/gitlab-ci/sidekiq.pid

ExecStart=/usr/bin/bundle-2.1 exec "sidekiq -q post_receive -q mailer -q system_hook -q project_web_hook -q gitlab_shell -q common -q default -e production -P /run/gitlab-ci/sidekiq.pid -d -L log/sidekiq.log >> log/sidekiq.log 2>&1"
ExecStop=/usr/bin/bundle-2.1 exec "sidekiqctl stop /run/gitlab-ci/sidekiq.pid >> <DATADIR>/log/sidekiq.log 2>&1"

[Install]
WantedBy=gitlab-ci.target