我遇到一个问题,其中journald没有记录任何错误消息,但是syslog似乎捕获它们就好了。这是一个例子:
记者输出:msg=Publish internal=true prefix="mqi (mqi)"
coral.service: main process exited, code=exited, status=2/INVALIDARGUMENT
syslog(/ var / log / messages)输出:
app: time="Nov 24 00:26:24.379" level=info msg=Publish internal=true prefix="mqi (mqi)"
systemd: coral.service: main process exited, code=exited, status=2/INVALIDARGUMENT
app: panic: process queue name is too long 'ENV_SGOBSIDTESTMANTLEIDENTITIIIO_I8CDDI8CDD_PROC'
app: goroutine 28 [running]:
app: lab.identitii.com/identitii/lib/ibis/ibiscon/mqi.partyToQueueName(0xc4253e45d0, 0x1369fe8, 0xc42004f180)
<stack trace>
该服务的单元文件如下所示。
[Unit]
Description=Frontend
Wants=network-online.target
After=network.target network-online.target
[Service]
User=user
WorkingDirectory=/usr/local/identitii/coral
Environment=LD_LIBRARY_PATH=/opt/oracle/instantclient_12_2
Environment=I8_config_path=/usr/local/srv/config/common,/usr/local/srv/config/coral
ExecStart=/usr/local/srv/coral/app
Type=simple
[Install]
WantedBy=multi-user.target
我已经尝试通过在没有爱的情况下将2&gt;&amp; 1附加到ExecStart来将stderr重定向到stdout。有什么想法吗?
我正在运行RHEL 7.2。
干杯