Commit a110670cf9cf68965a2305d5338fdf5ea360ddce

Authored by Jacob Vosmaer
1 parent 0e092d47

Rename runit templates for new unicorn service

files/gitlab-cookbooks/gitlab/templates/default/sv-gitlab-core-log-run.erb
@@ -1,2 +0,0 @@ @@ -1,2 +0,0 @@
1 -#!/bin/sh  
2 -exec svlogd -tt <%= @options[:log_directory] %>  
files/gitlab-cookbooks/gitlab/templates/default/sv-gitlab-core-run.erb
@@ -1,6 +0,0 @@ @@ -1,6 +0,0 @@
1 -#!/bin/sh  
2 -  
3 -cd /opt/gitlab/embedded/service/gitlab-core  
4 -  
5 -exec 2>&1  
6 -exec chpst -P -U <%= node['gitlab']['user']['username'] %> -u <%= node['gitlab']['user']['username'] %> /usr/bin/env HOME="<%= node['gitlab']['gitlab-core']['dir'] %>" /opt/gitlab/embedded/bin/bundle exec unicorn -E <%= node['gitlab']['gitlab-core']['environment'] %> -c <%= File.join(node['gitlab']['gitlab-core']['dir'], "etc", "unicorn.rb") %> /opt/gitlab/embedded/service/gitlab-core/config.ru  
files/gitlab-cookbooks/gitlab/templates/default/sv-unicorn-log-run.erb 0 → 100644
@@ -0,0 +1,2 @@ @@ -0,0 +1,2 @@
  1 +#!/bin/sh
  2 +exec svlogd -tt <%= @options[:log_directory] %>
files/gitlab-cookbooks/gitlab/templates/default/sv-unicorn-run.erb 0 → 100644
@@ -0,0 +1,6 @@ @@ -0,0 +1,6 @@
  1 +#!/bin/sh
  2 +
  3 +cd /opt/gitlab/embedded/service/gitlab-core
  4 +
  5 +exec 2>&1
  6 +exec chpst -P -U <%= node['gitlab']['user']['username'] %> -u <%= node['gitlab']['user']['username'] %> /usr/bin/env HOME="<%= node['gitlab']['gitlab-core']['dir'] %>" /opt/gitlab/embedded/bin/bundle exec unicorn -E <%= node['gitlab']['gitlab-core']['environment'] %> -c <%= File.join(node['gitlab']['gitlab-core']['dir'], "etc", "unicorn.rb") %> /opt/gitlab/embedded/service/gitlab-core/config.ru