7 Star 0 Fork 37

src-openEuler / rsyslog

 / 详情

时区定时检测脚本,当在一个检测周期内将时区从A修改为B,重启rsyslog服务,再修改回A后,无法检测到时区变化,rsyslog日志打印时间和系统时间时区会一直有差异

已完成
缺陷
创建于  
2022-01-21 19:00

【标题描述】时区定时检测脚本,当在一个检测周期内将时区从A修改为B,重启rsyslog服务,再修改回A后,无法检测到时区变化,rsyslog日志打印时间和系统时间时区会一直有差异
【环境信息】
输入图片说明
【问题复现步骤】
1、修改时区A为时区B(cp /usr/share/zoneinfo/Africa/Luanda /etc/localtime),重启rsyslog
2、将时区B在修改回原来的A(cp /etc/localtime_bak /etc/localtime)
3、执行os_check_timezone_for_rsyslog.sh ,有预期结果1
【预期结果】
预期结果1:rsyslog被重启,/etc/localtime_tmp为A时区时间
【实际结果】
时区修改为B,rsyslog重启后日志打印时间戳变为B时区时间,但/etc/localtime_tmp文件未更新,仍记录A时区,当系统时区改回A后检测脚本判断localtime_tmp文件中的时区和系统时区一致,不会触发重启rsyslog,故日志打印时间戳会一直保持B时区,和系统实际时区不一致。
【附件信息】

评论 (2)

Hi tttttty, 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: @yanan-rock , @Monday , @朱春意 , @hanxinke , @zhujianwei001 , @BigSkySea , @hexiaowen , @谢志鹏 , @syyhao , @chenjialong

tttttty 创建了缺陷
openeuler-ci-bot 添加了
 
sig/Base-service
标签
ltx 里程碑设置为openEuler-22.03-LTS
zhanzhimin 负责人设置为吴超超
吴超超 通过src-openeuler/rsyslog Pull Request !38任务状态待办的 修改为已完成
ltx 任务状态已完成 修改为待办的
展开全部操作日志

22.03-LTS分支未合入

登录 后才可以发表评论

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

搜索帮助