bugfix
This commit is contained in:
parent
07fe05c074
commit
81e314cd48
6
build.sh
6
build.sh
@ -52,15 +52,11 @@ cat > $cdir/start.sh <<EOF
|
|||||||
#!/usr/bin/bash
|
#!/usr/bin/bash
|
||||||
cd $cdir
|
cd $cdir
|
||||||
$cdir/py3/bin/python $cdir/app/sage.py -p 9180 -w $cdir &
|
$cdir/py3/bin/python $cdir/app/sage.py -p 9180 -w $cdir &
|
||||||
$cdir/py3/bin/python $cdir/app/sage.py -p 9181 -w $cdir &
|
|
||||||
exit 0
|
exit 0
|
||||||
EOF
|
EOF
|
||||||
cat > $cdir/stop.sh <<EOF
|
cat > $cdir/stop.sh <<EOF
|
||||||
for p in 9180 9181
|
PID=\$(lsof -t -i:9180)
|
||||||
do
|
|
||||||
PID=\$(lsof -t -i:\$p)
|
|
||||||
kill -9 \$PID
|
kill -9 \$PID
|
||||||
done
|
|
||||||
EOF
|
EOF
|
||||||
chmod +x $cdir/start.sh stop.sh
|
chmod +x $cdir/start.sh stop.sh
|
||||||
sudo mkdir /var/log/sage
|
sudo mkdir /var/log/sage
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user