/lib/systemd/system/unicorn.service is in unicorn 5.2.0-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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
|