Skip to content

Instantly share code, notes, and snippets.

@bencates
bencates / thin
Last active December 20, 2015 02:19 — forked from sorah/thin
#!/bin/bash
CURRENT_DIR=/home/
DAEMON=$CURRENT_DIR/bin/thin
CONFIG=$CURRENT_DIR/config/thin.yml
SCRIPT_NAME=/etc/init.d/thin
# Exit if the package is not installed
[ -x "$DAEMON" ] || exit 0