【环境信息】
oe 23.09 0830
【问题复现步骤】,请描述具体的操作步骤
systemctl show systemd-journald | grep 'ExecMainExitTimestamp=n/a'
【实际结果】,请描述出问题的结果和影响
无ExecMainExitTimestamp配置
Hi oh_thats_great, welcome to the openEuler Community.
I'm the Bot here serving you. You can find the instructions on how to interact with me at Here.
If you have any questions, please contact the SIG: Base-service, and any of the maintainers: @Monday , @syyhao , @谢志鹏 , @zhujianwei001 , @hexiaowen , @licunlong , @const , @xujing , @chenjiayi , @陈棋德
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。
systemd的一个特性补丁:使得--timestamp=也能在show谓词中显示
相关issue:https://github.com/systemd/systemd/pull/22568
该特性合入249的补丁为:https://github.com/systemd/systemd/commit/99a6dc51727e6c26cf43566de481272773cb1a91
可以看到timestamp_str变量有个初始值为"n/a",这个初始值使得ExecMainExitTimestamp始终在show中能显示出来
但特性合入253的补丁为:https://github.com/systemd/systemd/commit/a59e5c625da5a6e0c46e493d55f2f4212e9457ca
该版本systemd用了一个新的宏FORMAT_TIMESTAMP_STYLE来打印时间,但该宏并没有设置一个初始值,这导致了value为空,ExecMainExitTimestamp因为缺少value,所以在show中无法显示出来
已验证成功
登录 后才可以发表评论