Skip to content

Instantly share code, notes, and snippets.

@akl
akl / .gitignore
Created August 17, 2016 16:11 — forked from mynameisrufus/.gitignore
Double-forking Unix daemon
tmp
log
doc
daemon
*.swp
@akl
akl / unicorn_init.sh
Created February 10, 2012 18:13
Unicorn Example init script
#!/bin/sh
set -e
# Example init script, this can be used with nginx, too,
# since nginx and unicorn accept the same signals
# Feel free to change any of the following variables for your app:
TIMEOUT=${TIMEOUT-60}
APP_ROOT=/var/www/application/apps/current
PID=$APP_ROOT/tmp/pids/unicorn.pid
CMD="$APP_ROOT/bin/unicorn -D -c $APP_ROOT/config/unicorn.rb -E production"