added control script
This commit is contained in:
parent
5f462f815d
commit
6e22bccb62
1 changed files with 21 additions and 0 deletions
21
rc.ledgerrb
Executable file
21
rc.ledgerrb
Executable 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
|
Loading…
Add table
Reference in a new issue