From 2b120087f3fdddca03d79c6b67275b0509afa154 Mon Sep 17 00:00:00 2001 From: Adam Coldrick Date: Fri, 9 May 2014 10:52:06 +0000 Subject: Add a configure extension and relevant files for installing GitLab --- .../systemd-units/gitlab-sidekiq.service | 24 ++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 gitlab-server/usr/share/gitlab-install/systemd-units/gitlab-sidekiq.service (limited to 'gitlab-server/usr/share/gitlab-install/systemd-units/gitlab-sidekiq.service') diff --git a/gitlab-server/usr/share/gitlab-install/systemd-units/gitlab-sidekiq.service b/gitlab-server/usr/share/gitlab-install/systemd-units/gitlab-sidekiq.service new file mode 100644 index 00000000..82ff78d4 --- /dev/null +++ b/gitlab-server/usr/share/gitlab-install/systemd-units/gitlab-sidekiq.service @@ -0,0 +1,24 @@ +##################################################### +# +# GitLab version : 5.x - 6.x +# Contributors : davispuh, mtorromeo, axilleas, boeserwolf91 +# Downloaded from : https://github.com/gitlabhq/gitlab-recipes/tree/master/init/systemd +# +#################################################### + +[Unit] +Description=GitLab Sidekiq Worker + +[Service] +Type=forking +User=git +WorkingDirectory=/home/git/gitlab +Environment=RAILS_ENV=production +SyslogIdentifier=gitlab-sidekiq +PIDFile=/home/git/gitlab/tmp/pids/sidekiq.pid + +ExecStart=/usr/bin/bundle exec "sidekiq -q post_receive,mailer,system_hook,project_web_hook,gitlab_shell,common,default -e production -P tmp/pids/sidekiq.pid -d -L log/sidekiq.log >> log/sidekiq.log 2>&1" +ExecStop=/usr/bin/bundle exec "sidekiqctl stop /home/git/gitlab/tmp/pids/sidekiq.pid >> /home/git/gitlab/log/sidekiq.log 2>&1" + +[Install] +WantedBy=gitlab.target -- cgit v1.2.1