unicorn Ruby/Rack server user+dev discussion/patches/pulls/bugs/help
 help / color / mirror / code / Atom feed
5b16b5bf8c08b55e94080d1d036ef63f666a3198 blob 949 bytes (raw)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
 
# ==> /etc/systemd/system/unicorn@.service <==
# Since SIGUSR2 upgrades do not work under systemd, this service file
# allows starting two simultaneous services during upgrade time
# (e.g. unicorn@1 unicorn@2) with the intention that they take
# turns running in-between upgrades.  This should allow upgrading
# without downtime.

[Unit]
Description = unicorn Rack application server %i
Wants = unicorn.socket
After = unicorn.socket

[Service]
# bundler users must use the "--keep-file-descriptors" switch, here:
# ExecStart = bundle exec --keep-file-descriptors /usr/bin/unicorn ...
ExecStart = /usr/bin/unicorn -c /path/to/unicorn.conf.rb /path/to/config.ru
Sockets = unicorn.socket
KillSignal = SIGQUIT
User = nobody
Group = nogroup
ExecReload = /bin/kill -HUP $MAINPID

# This is based on the Unicorn::Configurator#timeout directive,
# adding a few seconds for scheduling differences:
TimeoutStopSec = 62

[Install]
WantedBy = multi-user.target
debug log:

solving 5b16b5b ...
found 5b16b5b in https://yhbt.net/unicorn-public/20160317002736.GA26688@dcvr.yhbt.net/
found b058da5 in https://yhbt.net/unicorn.git
preparing index
index prepared:
100644 b058da5251ab9fa8601ddd63178da8d6a44d0e5e	examples/unicorn@.service

applying [1/1] https://yhbt.net/unicorn-public/20160317002736.GA26688@dcvr.yhbt.net/
diff --git a/examples/unicorn@.service b/examples/unicorn@.service
index b058da5..5b16b5b 100644

Checking patch examples/unicorn@.service...
Applied patch examples/unicorn@.service cleanly.

index at:
100644 5b16b5bf8c08b55e94080d1d036ef63f666a3198	examples/unicorn@.service

Code repositories for project(s) associated with this inbox:

	../../../unicorn.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).