mirror of
https://github.com/gwenhael-le-moine/ledgerrb.git
synced 2024-12-27 21:58:11 +01:00
21 lines
258 B
Bash
Executable file
21 lines
258 B
Bash
Executable file
#!/bin/sh
|
|
|
|
THIN='bundle exec 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
|