Iniciar o serviço activemq no Linux recebe a mensagem: “Loaded: carregado (/etc/init.d/activemq; ruim; predefinição do fornecedor: ativado)”

Iniciar o serviço activemq no Linux recebe a mensagem: “Loaded: carregado (/etc/init.d/activemq; ruim; predefinição do fornecedor: ativado)”

Meu activemq caiu repentinamente (não sei por que). Quando tento iniciar o serviço por

sudo service activemq starts 

Parece bom. No entanto, quando verifico o status usando

sudo service activemq status

Recebi a seguinte mensagem.

activemq.service - LSB: Starts ActiveMQ
   Loaded: loaded (/etc/init.d/activemq; bad; vendor preset: enabled)
   Active: active (exited) since Fri 2018-03-30 19:51:54 UTC; 44min ago
     Docs: man:systemd-sysv-generator(8)
  Process: 1253 ExecStart=/etc/init.d/activemq start (code=exited, status=0/SUCCESS)
    Tasks: 0
   Memory: 0B
      CPU: 0

Mar 30 19:51:54 ip-172-31-43-187 systemd[1]: Starting LSB: Starts ActiveMQ...
Mar 30 19:51:54 ip-172-31-43-187 activemq[1253]: INFO: Loading '/etc/default/activemq'
Mar 30 19:51:54 ip-172-31-43-187 activemq[1253]: INFO: Using java '/usr/bin/java'
Mar 30 19:51:54 ip-172-31-43-187 activemq[1253]: INFO: Starting - inspect logfiles specified in logging.properties and log4j.properties to get details
Mar 30 19:51:54 ip-172-31-43-187 activemq[1253]: INFO: changing to user 'activemq' to invoke java
Mar 30 19:51:54 ip-172-31-43-187 su[1352]: Successful su for activemq by root
Mar 30 19:51:54 ip-172-31-43-187 su[1352]: + ??? root:activemq
Mar 30 19:51:54 ip-172-31-43-187 su[1352]: pam_unix(su:session): session opened for user activemq by (uid=0)
Mar 30 19:51:54 ip-172-31-43-187 activemq[1253]: INFO: pidfile created : '/etc//data/activemq.pid' (pid '1370')
Mar 30 19:51:54 ip-172-31-43-187 systemd[1]: Started LSB: Starts ActiveMQ.

Observe que se eu usar ps aux, posso encontrar o pid do activemq. Atualmente estou usando o nível gratuito da AWS. E meu sistema de servidor Linux é

Distributor ID: Ubuntu
Description:    Ubuntu 16.04.3 LTS
Release:        16.04
Codename:       xenial

Alguma ideia? pessoal. Por favor ajude.

Responder1

Parece que você está encontrando um bug Bug do activemq do Ubuntu

em vez desudo service activemq starts

tente systemctl start activemq.service o que também pode falhar

finalmente tente /etc/init.d/activemq console mainficar de olho no bug.

boa sorte

informação relacionada