Browse Source

rpm: added conf files for unicorn

pull/1/head
Vaidas Jablonskis 12 years ago
parent
commit
8c9f56cada
  1. 11
      dist/fedora/etc/entrydns/unicorn.conf
  2. 4
      dist/fedora/etc/sysconfig/unicorn-entrydns
  3. 10
      entrydns.spec

11
dist/fedora/etc/entrydns/unicorn.conf vendored

@ -0,0 +1,11 @@
#
# Configuration file for Unicorn app server for EntryDNS serving
#
worker_processes 2
working_directory "/srv/entrydns"
listen 8081
pid "/run/entrydns/unicorn.pid"
user entrydns, entrydns
stdout_path "/var/log/entrydns/unicorn_stdout.log"
stderr_path "/var/log/entrydns/unicorn_stderr.log"

4
dist/fedora/etc/sysconfig/unicorn-entrydns vendored

@ -0,0 +1,4 @@
#
# Environment variables for bundler
#
BUNDLE_GEMFILE="/srv/entrydns/Gemfile"

10
entrydns.spec

@ -72,6 +72,9 @@ rm -rf test doc spec Capfile Guardfile .git .gitignore .rspec .rvmrc config/data
find vendor/ -type f -wholename "*/cache/*.gem" -delete
find . -type f -name ".git*" -delete
install -p -d -m 0755 %{_sysconfdir}/%{name}
install -p -d -m 0750 %{_var}/log/%{name}
install -p -d -m 0755 /run/%{name}
install -p -d -m 0755 %{buildroot}%{entrydns_root}
install -p -d -m 0755 %{buildroot}%{entrydns_root}/log
install -p -d -m 0755 %{buildroot}%{entrydns_root}/tmp
@ -87,10 +90,15 @@ cp config.ru %{buildroot}%{entrydns_root}
cp Gemfile %{buildroot}%{entrydns_root}
cp Gemfile.lock %{buildroot}%{entrydns_root}
cp Rakefile %{buildroot}%{entrydns_root}
cp dist/fedora/etc/sysconfig/unicorn-entrydns %{buildroot}%{_sysconfdir}
cp dist/fedora/etc/%{name}/unicorn.conf %{buildroot}%{_sysconfdir}/%{name}
%files
%defattr(-, root, %{entrydns_user}, 0755)
%attr(-, %{entrydns_user}, %{entrydns_group}) %{_var}/log/%{name}
%{_sysconfdir}/%{name}
/run/%{name}
%{entrydns_root}/app
%attr(0750, root, %{entrydns_user}) %{entrydns_root}/config
%attr(0770, root, %{entrydns_user}) %{entrydns_root}/db
@ -105,6 +113,8 @@ cp Rakefile %{buildroot}%{entrydns_root}
%{entrydns_root}/Gemfile
%{entrydns_root}/Gemfile.lock
%{entrydns_root}/Rakefile
%attr(0644, root, root) %config(noreplace) %{entrydns_root}%{_sysconfdir}/sysconfig/unicorn-entrydns
%attr(0644, root, root) %config(noreplace) %{entrydns_root}%{_sysconfdir}%{name}/unicorn.conf
%pre

Loading…
Cancel
Save