12 lines
294 B
Bash
Executable File
12 lines
294 B
Bash
Executable File
#!/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 |