2014-11-26 10:59:47 +01: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 Unicorn Server
|
|
|
|
Requires=redis.service
|
|
|
|
Wants=mysqld.service postgresql.service
|
|
|
|
After=redis.service mysqld.service postgresql.service
|
|
|
|
|
|
|
|
[Service]
|
|
|
|
User=git
|
2015-10-06 03:41:22 +02:00
|
|
|
WorkingDirectory=/opt/gitlab
|
2014-11-26 10:59:47 +01:00
|
|
|
Environment=RAILS_ENV=production
|
|
|
|
SyslogIdentifier=gitlab-unicorn
|
|
|
|
PIDFile=/run/gitlab/unicorn.pid
|
|
|
|
|
2015-10-06 03:41:22 +02:00
|
|
|
ExecStart=/usr/bin/bundle exec "unicorn_rails -D -c /opt/gitlab/config/unicorn.rb -E production"
|
2014-11-26 10:59:47 +01:00
|
|
|
|
|
|
|
[Install]
|
2015-10-06 03:41:22 +02:00
|
|
|
WantedBy=multi-user.target
|