File: unicorn.service

package info (click to toggle)
unicorn 6.0.0-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 1,324 kB
  • sloc: ruby: 8,068; ansic: 4,175; sh: 1,773; perl: 53; makefile: 8
file content (18 lines) | stat: -rw-r--r-- 471 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
[Unit]
Description=Unicorn - Ruby web server
Documentation=man:unicorn
After=network.target mysql.service
Wants=network-online.target

[Service]
#Environment=CONFIG_RB=/path/to/your/web/application/unicorn.conf.rb
Environment=UNICORN_OPTS=-E production
EnvironmentFile=-/etc/default/unicorn
ExecStart=/usr/bin/unicorn -c ${CONFIG_RB} ${UNICORN_OPTS}
ExecReload=/bin/kill -HUP $MAINPID
Restart=on-abort
#User=www-data
#Group=www-data

[Install]
WantedBy=multi-user.target