Commit ca9c194eeccc0920fb083b2dc3af970ce19294b8
1 parent
a415b0c6
Exists in
master
and in
21 other branches
Correção retirando grep -v job
Showing
1 changed file
with
15 additions
and
17 deletions
Show diff stats
verificar-servicos.sh
@@ -8,9 +8,9 @@ if [[ -z $GEARMAN ]]; then | @@ -8,9 +8,9 @@ if [[ -z $GEARMAN ]]; then | ||
8 | echo "ERROR: Instalação do Gearman não pode ser localizada." | 8 | echo "ERROR: Instalação do Gearman não pode ser localizada." |
9 | exit 1 | 9 | exit 1 |
10 | else | 10 | else |
11 | - ps cax | grep -ih gearman.* | grep -v job > /dev/null | 11 | + ps cax | grep -ih gearman.* > /dev/null |
12 | if [ $? -ne 0 ]; then | 12 | if [ $? -ne 0 ]; then |
13 | - echo "Gearman: Iniciando serviço de gerenciamento de fila de tarefas..." | 13 | + echo "Gearman: Iniciando serviço de gerenciamento de fila de tarefas..." |
14 | /etc/init.d/$GEARMAN start; | 14 | /etc/init.d/$GEARMAN start; |
15 | fi | 15 | fi |
16 | fi | 16 | fi |
@@ -22,24 +22,22 @@ if [[ -z $SUPERVISOR ]]; then | @@ -22,24 +22,22 @@ if [[ -z $SUPERVISOR ]]; then | ||
22 | else | 22 | else |
23 | ps cax | grep -ih supervisor.* > /dev/null | 23 | ps cax | grep -ih supervisor.* > /dev/null |
24 | if [ $? -ne 0 ]; then | 24 | if [ $? -ne 0 ]; then |
25 | - echo "Supervisor: Iniciando serviço de monitoramento dos processos de integração..." | 25 | + echo "Supervisor: Iniciando serviço de monitoramento dos processos de integração..." |
26 | /etc/init.d/$SUPERVISOR start; | 26 | /etc/init.d/$SUPERVISOR start; |
27 | else | 27 | else |
28 | 28 | ||
29 | - COMMAND=$(ps -C php -f | grep -o "PendenciasTramiteRN.php"); | ||
30 | - if [ -z "$COMMAND" ] | ||
31 | - then | ||
32 | - echo "Supervisor: Reiniciando serviço de monitoramento dos processos de integração..." | ||
33 | - /etc/init.d/$SUPERVISOR stop; | ||
34 | - /etc/init.d/$SUPERVISOR start; | ||
35 | - fi | 29 | + COMMAND=$(ps -C php -f | grep -o "PendenciasTramiteRN.php"); |
30 | + if [ -z "$COMMAND" ]; then | ||
31 | + echo "Supervisor: Reiniciando serviço de monitoramento dos processos de integração..." | ||
32 | + /etc/init.d/$SUPERVISOR stop; | ||
33 | + /etc/init.d/$SUPERVISOR start; | ||
34 | + fi | ||
36 | 35 | ||
37 | - COMMAND=$(ps -C php -f | grep -o "ProcessarPendenciasRN.php"); | ||
38 | - if [ -z "$COMMAND" ] | ||
39 | - then | ||
40 | - echo "Supervisor: Reiniciando serviço de monitoramento dos processos de integração..." | ||
41 | - /etc/init.d/$SUPERVISOR stop; | ||
42 | - /etc/init.d/$SUPERVISOR start; | ||
43 | - fi | 36 | + COMMAND=$(ps -C php -f | grep -o "ProcessarPendenciasRN.php"); |
37 | + if [ -z "$COMMAND" ]; then | ||
38 | + echo "Supervisor: Reiniciando serviço de monitoramento dos processos de integração..." | ||
39 | + /etc/init.d/$SUPERVISOR stop; | ||
40 | + /etc/init.d/$SUPERVISOR start; | ||
41 | + fi | ||
44 | fi | 42 | fi |
45 | fi | 43 | fi |