Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Unicorn service file for systemd with rvm support
# save this file in /etc/default/unicorn_app
USER=app_user
APP_ROOT=/srv/app
RVM_STRING=2.2.4@app_gemset
RACK_ENV=production
UNICORN_OPTS="-D -c /srv/app/shared/config/unicorn.rb -E production"
DAEMON=unicorn
[Unit]
# You can create multiple unicorn service by linking unicorn@.service to unicorn@appone.service, unicorn@apptwo.service
# each application reads its settings from /etc/default/unicorn_appone, /etc/default/unicorn_apptwo
Description=Unicorn serving %I app
After=syslog.target
[Service]
Restart=always
RestartSec=10
Type=forking
WorkingDirectory=/srv/%I/current
EnvironmentFile=/etc/default/unicorn_%I
SyslogIdentifier=unicorn-%I
PIDFile=/srv/%I/shared/pids/unicorn.pid
KillMode=mixed
KillSignal=SIGQUIT
User=%I
ExecStart=/usr/local/rvm/bin/rvm-shell ${RVM_STRING} -c "bundle exec ${DAEMON} ${UNICORN_OPTS}"
[Install]
WantedBy=multi-user.target
@JosueGonzalez123

This comment has been minimized.

Copy link

@JosueGonzalez123 JosueGonzalez123 commented Jul 26, 2017

Con estos codigos es puede hackear google ?

@vnetmx

This comment has been minimized.

Copy link

@vnetmx vnetmx commented Sep 2, 2019

Con estos codigos es puede hackear google ?

zi

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.