mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-28 22:57:37 +00:00
30 lines
764 B
SYSTEMD
30 lines
764 B
SYSTEMD
|
[Unit]
|
||
|
Description=GitLab Unicorn Server
|
||
|
Requires=redis.service
|
||
|
Wants=mysqld.service postgresql.service
|
||
|
After=redis.service mysqld.service postgresql.service network.target
|
||
|
|
||
|
[Service]
|
||
|
User=gitlab
|
||
|
Group=gitlab
|
||
|
WorkingDirectory=<DATADIR>
|
||
|
Environment=RAILS_ENV=production PATH=/opt/ruby/bin:/usr/bin
|
||
|
SyslogIdentifier=gitlab-unicorn
|
||
|
PIDFile=/run/gitlab/unicorn.pid
|
||
|
RuntimeDirectory=gitlab
|
||
|
RuntimeDirectoryMode=775
|
||
|
CapabilityBoundingSet=
|
||
|
PrivateTmp=true
|
||
|
PrivateDevices=true
|
||
|
ProtectSystem=full
|
||
|
ProtectHome=true
|
||
|
NoNewPrivileges=true
|
||
|
ExecStart=/usr/bin/bundle exec unicorn_rails -c <DATADIR>/config/unicorn.rb -E production
|
||
|
ExecStop=/usr/bin/kill -QUIT $MAINPID
|
||
|
ExecReload=/usr/bin/kill -USR2 $MAINPID
|
||
|
Restart=on-failure
|
||
|
RestartSec=1
|
||
|
|
||
|
[Install]
|
||
|
WantedBy=multi-user.target
|