added control script

This commit is contained in:
Gwenhael Le Moine 2014-07-31 18:51:55 +02:00
parent 5f462f815d
commit 6e22bccb62

21
rc.ledgerrb Executable file
View file

@ -0,0 +1,21 @@
#!/bin/sh
THIN=thin
THINYML=$(pwd)/config/thin.yml
case $1 in
"start")
$THIN -C $THINYML start
;;
"stop")
$THIN -C $THINYML stop
;;
"restart")
$THIN -C $THINYML restart
;;
*)
echo "Usage; start|stop|restart"
;;
esac