Skip to content

Instantly share code, notes, and snippets.

View vsizov's full-sized avatar

Valeriy Sizov vsizov

  • Portugal, Lisbon
View GitHub Profile
@vsizov
vsizov / unicorn
Created February 29, 2012 09:49
/etc/init.d script for unicorn
#!/bin/sh
#
# init.d script for single or multiple unicorn installations. Expects at least one .conf
# file in /etc/unicorn
#
# Modified by jay@gooby.org http://github.com/jaygooby
# based on http://gist.github.com/308216 by http://github.com/mguterl
#
## A sample /etc/unicorn/my_app.conf
##
@vsizov
vsizov / unicorn
Created February 29, 2012 09:48 — forked from bikashp/unicorn
unicorn init script
#!/bin/bash
### BEGIN INIT INFO
# Provides: APPLICATION
# Required-Start: $all
# Required-Stop: $network $local_fs $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start the APPLICATION unicorns at boot
# Description: Enable APPLICATION at boot time.
### END INIT INFO