]>
Commit | Line | Data |
---|---|---|
edff9e13 ER |
1 | ##################################################### |
2 | # | |
3 | # GitLab version : 5.x - 6.x | |
4 | # Contributors : davispuh, mtorromeo, axilleas, boeserwolf91 | |
5 | # Downloaded from : https://github.com/gitlabhq/gitlab-recipes/tree/master/init/systemd | |
6 | # | |
7 | #################################################### | |
8 | ||
9 | [Unit] | |
10 | Description=GitLab Sidekiq Worker | |
11 | ||
12 | [Service] | |
13 | Type=forking | |
14 | User=gitlab | |
34df8417 | 15 | WorkingDirectory=/usr/lib/gitlab |
edff9e13 ER |
16 | Environment=RAILS_ENV=production |
17 | SyslogIdentifier=gitlab-sidekiq | |
34df8417 | 18 | PIDFile=/var/run/gitlab/sidekiq.pid |
edff9e13 | 19 | |
ff9de378 | 20 | ExecStart=/usr/bin/bundle exec "sidekiq -C config/sidekiq_queues.yml -e production -P pids/sidekiq.pid -d -L log/sidekiq.log >> log/sidekiq.log 2>&1" |
34df8417 | 21 | ExecStop=/usr/bin/bundle exec "sidekiqctl stop /var/run/gitlab/sidekiq.pid >> /var/lib/gitlab/sidekiq.log 2>&1" |
edff9e13 ER |
22 | |
23 | [Install] | |
24 | WantedBy=gitlab.target |