Files
django_lottopy/monitorG.sh
T
2022-06-15 00:15:05 +00:00

13 lines
296 B
Bash
Executable File

#!/bin/bash
PLIST="gunicorn redis nginx"
for p in $PLIST
do
pgrep $p
if [ $? -ne 0 ]
then
/etc/init.d/$p start >/dev/null
fi
#gunicorn -c /home/williedynamite/django_lottopy/gunicorn.conf.py --workers 3 --bind unix:/root/django_lottopy/django_lottopy.sock lottopy_site.wsgi:application