]>
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 | |
15 | WorkingDirectory=/var/lib/gitlab | |
16 | Environment=RAILS_ENV=production | |
17 | SyslogIdentifier=gitlab-sidekiq | |
18 | PIDFile=/var/lib/gitlab/pids/sidekiq.pid | |
19 | ||
20 | ExecStart=/var/lib/gitlab/bin/bundle exec "sidekiq -q post_receive,mailer,system_hook,project_web_hook,gitlab_shell,common,default -e production -P pids/sidekiq.pid -d -L log/sidekiq.log >> log/sidekiq.log 2>&1" | |
21 | ExecStop=/var/lib/gitlab/bin/bundle exec "sidekiqctl stop /var/lib/gitlab/pids/sidekiq.pid >> /var/lib/gitlab/log/sidekiq.log 2>&1" | |
22 | ||
23 | [Install] | |
24 | WantedBy=gitlab.target |