2016-08-18 15:55:00 +02:00
|
|
|
#####################################################
|
|
|
|
#
|
|
|
|
# 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
|
|
|
|
Requires=redis.service
|
|
|
|
Wants=mysqld.service postgresql.service
|
|
|
|
After=redis.service mysqld.service postgresql.service
|
|
|
|
|
|
|
|
[Service]
|
|
|
|
Type=forking
|
|
|
|
User=git
|
|
|
|
WorkingDirectory=/opt/gitlab
|
|
|
|
Environment=RAILS_ENV=production
|
|
|
|
SyslogIdentifier=gitlab-sidekiq
|
|
|
|
PIDFile=/run/gitlab/sidekiq.pid
|
|
|
|
|
2016-08-18 18:41:33 +02:00
|
|
|
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 /run/gitlab/sidekiq.pid -d -L /var/log/gitlab/sidekiq.log >> /var/log/gitlab/sidekiq.log 2>&1"
|
2016-08-18 15:55:00 +02:00
|
|
|
ExecStop=/usr/bin/bundle exec "sidekiqctl stop /run/gitlab/sidekiq.pid >> /var/log/gitlab/sidekiq.log 2>&1"
|
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|