13 Star 9 Fork 91

src-openEuler / systemd

 / 详情

systemd-journald服务没有ExecMainExitTimestamp配置

已验收
缺陷
创建于  
2023-09-12 10:59

【环境信息】
oe 23.09 0830

【问题复现步骤】,请描述具体的操作步骤

systemctl show systemd-journald | grep 'ExecMainExitTimestamp=n/a'

【实际结果】,请描述出问题的结果和影响
无ExecMainExitTimestamp配置

评论 (3)

哦那真是一级棒 创建了缺陷

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 , @陈棋德

openeuler-ci-bot 添加了
 
sig/Base-service
标签
zhaotianyang 负责人设置为hongjinghao

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中无法显示出来
输入图片说明

哦那真是一级棒 任务状态待办的 修改为已完成
哦那真是一级棒 任务状态已完成 修改为已验收

登录 后才可以发表评论

状态
负责人
项目
里程碑
Pull Requests
关联的 Pull Requests 被合并后可能会关闭此 issue
分支
开始日期   -   截止日期
-
置顶选项
优先级
预计工期 (小时)
参与者(3)
5329419 openeuler ci bot 1632792936 10350586 wangyuhang27 1686623597
1
https://gitee.com/src-openeuler/systemd.git
git@gitee.com:src-openeuler/systemd.git
src-openeuler
systemd
systemd

搜索帮助