28 lines
990 B
SYSTEMD
28 lines
990 B
SYSTEMD
|
#####################################################
|
||
|
#
|
||
|
# GitLab version : 8.13.x - 9999
|
||
|
# 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
|
||
|
|
||
|
ExecStart=/usr/bin/bundle exec "sidekiq -d -C /etc/gitlab/sidekiq_queues.yml -e production -P /run/gitlab/sidekiq.pid -d -L /var/log/gitlab/sidekiq.log >> /var/log/gitlab/sidekiq.log 2>&1"
|
||
|
ExecStop=/usr/bin/bundle exec "sidekiqctl stop /run/gitlab/sidekiq.pid >> /var/log/gitlab/sidekiq.log 2>&1"
|
||
|
|
||
|
[Install]
|
||
|
WantedBy=multi-user.target
|