[Unit] Description=GitLab Unicorn Server # Only start service when config/unicorn.rb exist ConditionFileNotEmpty=@GITLAB_CONFIG@/unicorn.rb Requires=redis.service After=redis.service postgresql-12.service PartOf=gitlab.target [Service] User=git WorkingDirectory=@GITLAB@ Environment=RAILS_ENV=production SyslogIdentifier=gitlab-unicorn PIDFile=@TMP_DIR@/pids/unicorn.pid ExecStart=@GITLAB@/bin/bundle exec "unicorn_rails -c @GITLAB_CONFIG@/unicorn.rb -E ${RAILS_ENV}"