Advertisement
Guest User

rhel7 gitlab units

a guest
Feb 12th, 2015
504
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.14 KB | None | 0 0
  1. ^_^ alexv@git [/etc/systemd/system] $ cat gitlab.target
  2. [Unit]
  3. Description=GitLab - Self Hosted Git Management
  4. Requires=redis.service postgresql.service
  5. After=redis.service postgresql.service network.target
  6.  
  7. [Install]
  8. WantedBy=multi-user.target
  9. ^_^ alexv@git [/etc/systemd/system] $ cat gitlab-sidekiq.service
  10. [Unit]
  11. Description=GitLab Sidekiq Worker
  12.  
  13. [Service]
  14. User=git
  15. WorkingDirectory=/home/git/gitlab
  16. Environment=RAILS_ENV=production
  17.  
  18. ExecStart=/bin/bundle exec sidekiq -q post_receive -q mailer -q system_hook -q project_web_hook -q gitlab_shell -q common -q default -e $RAILS_ENV -P /home/git/gitlab/tmp/pids/sidekiq.pid
  19.  
  20. [Install]
  21. WantedBy=gitlab.target
  22. ^_^ alexv@git [/etc/systemd/system] $ cat gitlab-unicorn.service
  23. [Unit]
  24. Description=GitLab Unicorn Server
  25.  
  26. [Service]
  27. Type=simple
  28. User=git
  29. WorkingDirectory=/home/git/gitlab
  30. Environment=RAILS_ENV=production
  31. Environment=UNICORN_CONFIG_FILE=/home/git/gitlab/config/unicorn.rb
  32.  
  33. ExecStart=/bin/bundle exec unicorn_rails -c $UNICORN_CONFIG_FILE -E $RAILS_ENV
  34. ExecReload=/usr/bin/kill -USR2 $MAINPID
  35.  
  36. [Install]
  37. WantedBy=gitlab.target
  38. ^_^ alexv@git [/etc/systemd/system] $
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement