27 lines
808 B
SYSTEMD
27 lines
808 B
SYSTEMD
|
#####################################################
|
||
|
#
|
||
|
# 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 Unicorn Server
|
||
|
PartOf=gitlab.target
|
||
|
Requires=redis.service
|
||
|
Wants=postgresql.service
|
||
|
After=redis.service postgresql.service
|
||
|
|
||
|
[Service]
|
||
|
User=gitlab
|
||
|
WorkingDirectory=/usr/share/gitlab
|
||
|
EnvironmentFile=/etc/gitlab/gitlab-debian.conf
|
||
|
SyslogIdentifier=gitlab-unicorn
|
||
|
PIDFile=/usr/share/gitlab/tmp/pids/unicorn.pid
|
||
|
|
||
|
ExecStart=/usr/bin/bundle exec "unicorn_rails -D -c /usr/share/gitlab/config/unicorn.rb -E production"
|
||
|
|
||
|
[Install]
|
||
|
WantedBy=multi-user.target
|