correctifs

This commit is contained in:
2022-08-26 11:39:12 +02:00
parent 9cf7ff655b
commit 10b93e9873
2 changed files with 14 additions and 1 deletions

12
bin/messager.sh Normal file
View File

@ -0,0 +1,12 @@
#!/bin/bash
SERVICE="messager.sh"
pgrep -x "$SERVICE" >/tmp/messager.pid
NB=$(wc -l < /tmp/messager.pid)
if [ ${NB} -gt 1 ]
then
echo "$SERVICE is running"
else
echo "$SERVICE stopped"
/var/www/html/nineskeletor/bin/console messenger:consume async --memory-limit=512m --env=prod
fi