28 lines
324 B
Bash
Executable File
28 lines
324 B
Bash
Executable File
#!/usr/local/bin/bash
|
|
|
|
ACMD="$1"
|
|
ARGV="$@"
|
|
|
|
. /tilde/lyadmin/venv/bin/activate
|
|
|
|
INSTDIR='/tilde/lyadmin'
|
|
LINGYIND="$INSTDIR/app.py"
|
|
ERROR=0
|
|
|
|
USAGESTR='Usage:) lyctl.sh start'
|
|
|
|
case $ACMD in
|
|
start)
|
|
cd $INSTDIR
|
|
$LINGYIND
|
|
$ERROR=$?
|
|
;;
|
|
*)
|
|
echo "no valid aguments..."
|
|
echo $USAGESTR
|
|
ERROR=2
|
|
esac
|
|
|
|
exit $ERROR
|
|
|