[Unicorn.service] Managing Unicorn & Puma web servers with systemd
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Unit] | |
Description=Unicorn service | |
After=network.target | |
[Service] | |
Type=forking | |
Environment=RAILS_ENV=production | |
WorkingDirectory=/apps/awesomeapp/awesomeapp-git | |
PIDFile=/apps/awesomeapp/awesomeapp-git/tmp/pids/unicorn.pid | |
ExecStart=/bin/bash -l -c 'bundle exec unicorn -c config/unicorn.rb -D' | |
ExecReload=/bin/kill -HUP $MAINPID | |
KillMode=process | |
KillSignal=SIGQUIT | |
Restart=on-failure | |
SyslogIdentifier=awesomeapp-unicorn | |
[Install] | |
WantedBy=default.target |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment