28 lines
315 B
Bash
Executable File
28 lines
315 B
Bash
Executable File
#!/bin/ksh
|
|
|
|
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
|
|
|