Skip to content

Instantly share code, notes, and snippets.

View johannesfritsch's full-sized avatar

Johannes Fritsch johannesfritsch

View GitHub Profile
@sorah
sorah / thin
Created November 30, 2011 16:52
/etc/init.d/thin - thin init script with bundle exec. own your risk - public domain.
#!/bin/bash
DAEMON=/path/to/thin
BUNDLE=/path/to/bundle
CONFIG_PATH=/etc/thin
SCRIPT_NAME=/etc/init.d/thin
# Exit if the package is not installed
[ -x "$DAEMON" ] || exit 0