This commit is contained in:
yumoqing 2025-11-06 10:36:46 +08:00
parent db9899521d
commit d3ad9d845c

View File

@ -44,11 +44,11 @@ EOF
cat > $cdir/start.sh <<EOF cat > $cdir/start.sh <<EOF
#!/usr/bin/bash #!/usr/bin/bash
cd $cdir cd $cdir
$cdir/py3/bin/python $cdir/app/fastwhisper.py -p 9180 -w $cdir & $cdir/py3/bin/python $cdir/app/fastwhisper.py -w $cdir &
exit 0 exit 0
EOF EOF
cat > $cdir/stop.sh <<EOF cat > $cdir/stop.sh <<EOF
PID=\$(lsof -t -i:9180) PID=\$(lsof -t -i:9925)
kill -9 \$PID kill -9 \$PID
EOF EOF
chmod +x $cdir/start.sh stop.sh chmod +x $cdir/start.sh stop.sh