Permalink
Browse files

Add missing runit templates

  • Loading branch information...
1 parent 3a705b9 commit 96c893344bb47b1400f599cadaefd94b23997e12 @avit committed Oct 15, 2012
Showing with 10 additions and 0 deletions.
  1. +3 −0 templates/default/sv-unicorn-log-run.erb
  2. +7 −0 templates/default/sv-unicorn-run.erb
@@ -0,0 +1,3 @@
+#!/bin/sh
+exec svlogd -tt ./main
+
@@ -0,0 +1,7 @@
+#!/bin/bash
+
+cd <%= @options[:app].path %>/current
+
+exec 2>&1
+exec chpst -u <%= @options[:app].owner %>:<%= @options[:app].group %> <%= @options[:app].bundler ? 'bundle exec' : '' %> <%= @options[:smells_like_rack] ? 'unicorn' : 'unicorn_rails' %> -E <%= @options[:rails_env] %> -c /etc/unicorn/<%= @options[:app].application.name %>.rb
+

0 comments on commit 96c8933

Please sign in to comment.