31 lines
935 B
SYSTEMD
31 lines
935 B
SYSTEMD
|
[Unit]
|
||
|
Description=GitLab Sidekiq Worker
|
||
|
Requires=redis.service gitlab-puma.service
|
||
|
Wants=postgresql.service
|
||
|
After=redis.service postgresql.service network.target gitlab-puma.service
|
||
|
JoinsNamespaceOf=gitlab-puma.service
|
||
|
StartLimitIntervalSec=100s
|
||
|
|
||
|
[Service]
|
||
|
User=gitlab
|
||
|
Group=gitlab
|
||
|
WorkingDirectory=/usr/share/gitlab
|
||
|
EnvironmentFile=/usr/share/gitlab/environment
|
||
|
SyslogIdentifier=gitlab-sidekiq
|
||
|
PIDFile=/run/gitlab/sidekiq.pid
|
||
|
PrivateTmp=true
|
||
|
ProtectSystem=full
|
||
|
ProtectHome=true
|
||
|
# These options break Gitlab's email delivery if you
|
||
|
# use postfix' sendmail wrapper. If you use an SMTP server
|
||
|
# instead you can safely enable these security features.
|
||
|
#NoNewPrivileges=true
|
||
|
#CapabilityBoundingSet=
|
||
|
ExecStart=/usr/bin/bundle exec sidekiq -C /usr/share/gitlab/config/sidekiq_queues.yml -e production
|
||
|
ExecStop=/usr/bin/bundle exec sidekiqctl stop /run/gitlab/sidekiq.pid
|
||
|
Restart=on-failure
|
||
|
RestartSec=1
|
||
|
|
||
|
[Install]
|
||
|
WantedBy=multi-user.target
|