Vaidas Jablonskis
12 years ago
2 changed files with 17 additions and 2 deletions
@ -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" |
||||
|
@ -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…
Reference in new issue