Browse Source

rpm: fixed config file and added systemd service unit file

pull/1/head
Vaidas Jablonskis 12 years ago
parent
commit
c0024d5d95
  1. 4
      dist/fedora/etc/entrydns/unicorn.conf
  2. 15
      dist/fedora/lib/systemd/system/unicorn-entrydns.service

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

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

15
dist/fedora/lib/systemd/system/unicorn-entrydns.service vendored

@ -0,0 +1,15 @@
[Unit]
Description=Unicorn application server for EntryDNS
After=network.target remote-fs.target nss-lookup.target
[Service]
Type=simple
EnvironmentFile=/etc/sysconfig/unicorn-entrydns
PIDFile=/run/entrydns/unicorn.pid
ExecStart=/usr/bin/bundle exec 'unicorn -c /etc/entrydns/unicorn.conf'
ExecReload=/usr/bin/kill -HUP ${MAINPID}
ExecStop=/usr/bin/kill -QUIT ${MAINPID}
[Install]
WantedBy=multi-user.target
Loading…
Cancel
Save