Updates
This commit is contained in:
8
shell/RestartFlask.sh
Executable file
8
shell/RestartFlask.sh
Executable file
@@ -0,0 +1,8 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
./Prepare.sh
|
||||||
|
cd ..
|
||||||
|
ServiceName=$(python3 Scripts.py --getconfig PROGNAME)
|
||||||
|
SHMName=$(python3 Scripts.py --getconfig SHMNAME)
|
||||||
|
|
||||||
|
echo 'Перезапуск '$ServiceName' Flask'
|
||||||
|
sudo service $SHMName'_flask' restart
|
||||||
7
shell/StopFlask.sh
Executable file
7
shell/StopFlask.sh
Executable file
@@ -0,0 +1,7 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
cd ..
|
||||||
|
ServiceName=$(python3 Scripts.py --getconfig PROGNAME)
|
||||||
|
SHMName=$(python3 Scripts.py --getconfig SHMNAME)
|
||||||
|
|
||||||
|
echo 'Остановка '$ServiceName' Flask'
|
||||||
|
sudo service $SHMName'_flask' stop
|
||||||
Reference in New Issue
Block a user