systemd-journald[302]: Received SIGTERM from PID 1 (systemd-shutdow).
时间: 2024-05-27 21:14:11 浏览: 25
This message indicates that the systemd-journald process has received a SIGTERM (termination signal) from PID 1, which is the systemd-shutdown process. This typically happens when the system is shutting down or rebooting. The systemd-journald process is responsible for logging system events and messages, and it receives the termination signal to ensure that all pending logs are written to disk before the system shuts down.
相关问题
systemd-journald.service 单元 在哪个配置文件
`systemd-journald.service` 单元文件的位置在 `/usr/lib/systemd/system/systemd-journald.service`。这是系统级别的默认配置文件,如果你需要修改该文件,建议不要直接修改该文件,而是通过创建一个 `/etc/systemd/system/systemd-journald.service.d/` 目录,并在该目录中创建一个 `.conf` 文件来进行修改。
具体来说,你可以执行以下步骤:
1. 创建目录 `/etc/systemd/system/systemd-journald.service.d/`:
```
sudo mkdir -p /etc/systemd/system/systemd-journald.service.d/
```
2. 在该目录中创建一个 `.conf` 文件,例如 `custom.conf`:
```
sudo nano /etc/systemd/system/systemd-journald.service.d/custom.conf
```
3. 在 `custom.conf` 文件中添加你需要修改的选项,例如:
```
[Service]
SystemCallFilter=~@clock,@cpu-emulation,@debug,@module,@obsolete,@raw-io,read,write,futex,sigreturn
```
4. 保存文件并退出编辑器。
5. 重新加载 systemd 配置并重启 journald 服务以使配置生效:
```
sudo systemctl daemon-reload
sudo systemctl restart systemd-journald.service
```
这样,你就成功地修改了 journald 的配置,并且保证了在系统更新时不会被覆盖。
6月 09 21:52:17 localhost.localdomain systemd[1]: named.service: Control p> 6月 09 21:52:17 localhost.localdomain systemd[1]: named.service: Failed wi> -- Subject: Unit failed -- Defined-By: systemd -- Support: https://access.redhat.com/support -- -- The unit named.service has entered the 'failed' state with result 'exit> 6月 09 21:52:17 localhost.localdomain systemd[1]: Failed to start Berkeley> -- Subject: named.service 单元已失败 -- Defined-By: systemd -- Support: https://access.redhat.com/support -- -- named.service 单元已失败。 -- -- 结果为“failed”。 6月 09 21:52:17 localhost.localdomain systemd[1]: Reached target Host and > -- Subject: nss-lookup.target 单元已结束启动 -- Defined-By: systemd -- Support: https://access.redhat.com/support -- -- nss-lookup.target 单元已结束启动。 -- -- 启动结果为“done”。
根据日志信息,named 服务启动失败了,具体错误信息需要查看更详细的日志。您可以通过以下命令查看更详细的日志信息:
journalctl -u named.service
通过查看更详细的日志信息,您可能能够找到导致 named 服务启动失败的具体原因。例如,可能是由于 DNS 配置文件中存在语法错误,或者是由于 named 用户缺少必要的权限等原因导致的。