correctifs
This commit is contained in:
parent
9cf7ff655b
commit
10b93e9873
12
bin/messager.sh
Normal file
12
bin/messager.sh
Normal 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
|
@ -42,7 +42,8 @@ class ApiService
|
||||
\Unirest\Request::proxy($proxyHost, $proxyPort, CURLPROXY_HTTP, true);
|
||||
}
|
||||
|
||||
if($query) $query = \Unirest\Request\Body::json($query);
|
||||
//if($query) $query = \Unirest\Request\Body::json($query);
|
||||
if($query) $query = http_build_query($query);
|
||||
|
||||
$response = false;
|
||||
switch($method) {
|
||||
|
Loading…
Reference in New Issue
Block a user