Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ^_^ alexv@git [/etc/systemd/system] $ cat gitlab.target
- [Unit]
- Description=GitLab - Self Hosted Git Management
- Requires=redis.service postgresql.service
- After=redis.service postgresql.service network.target
- [Install]
- WantedBy=multi-user.target
- ^_^ alexv@git [/etc/systemd/system] $ cat gitlab-sidekiq.service
- [Unit]
- Description=GitLab Sidekiq Worker
- [Service]
- User=git
- WorkingDirectory=/home/git/gitlab
- Environment=RAILS_ENV=production
- 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
- [Install]
- WantedBy=gitlab.target
- ^_^ alexv@git [/etc/systemd/system] $ cat gitlab-unicorn.service
- [Unit]
- Description=GitLab Unicorn Server
- [Service]
- Type=simple
- User=git
- WorkingDirectory=/home/git/gitlab
- Environment=RAILS_ENV=production
- Environment=UNICORN_CONFIG_FILE=/home/git/gitlab/config/unicorn.rb
- ExecStart=/bin/bundle exec unicorn_rails -c $UNICORN_CONFIG_FILE -E $RAILS_ENV
- ExecReload=/usr/bin/kill -USR2 $MAINPID
- [Install]
- WantedBy=gitlab.target
- ^_^ alexv@git [/etc/systemd/system] $
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement