- 论坛徽章:
- 0
|
本帖最后由 w8875cu 于 2014-04-29 13:59 编辑
大家好,有个疑难请教系统是Centos6.0:需求是要记录系统从Grub引导第一个进程时开始记录时间,直到到启动完成,所耗的时间并保存。
/var/log/boot.log中记录了启动服务的状态,但是没有时间,如何在这个记录中添加时间的选项呢?
####################
临时的解决方法:
编辑vim /etc/rc.sysinit(添加黑色字体)
477 # Remount the root filesystem read-write.
478 update_boot_stage RCmountfs
479 if remount_needed ; then
480 action $"Remounting root filesystem in read-write mode: " mount -n -o remount,rw /
481 fi
482 ###echo record Uptime
483 echo -en "\t\tTroubleshooting.time"
484 echo -en "`date`" >>/var/log/Troubleshooting.time
485 # Clean up SELinux labels |
|