This commit is contained in:
Gogs
2019-12-09 23:57:26 +04:00
parent cc4c4b90fb
commit 55df7321f8
150 changed files with 13473 additions and 0 deletions

27
Restart.sh Executable file
View File

@@ -0,0 +1,27 @@
#!/bin/bash
###!/usr/bin/env bash
echo "Мягко закрываем службу"
killall -s 15 gunicorn -r
x=7
#P = if pgrep 'gunicorn';
#echo $P
while [ $x -gt 0 ] && pgrep 'gunicorn' ;
do
sleep 1
echo "Ожидание закрытия сек: $x"
x=$(( $x - 1 ))
done
if pgrep 'gunicorn';
then
echo "Принудительно убиваем службу"
killall -s 9 gunicorn -r
sleep 3
else
echo "Служба успешно закрыта"
fi
sh Gunicorn.sh