ubuntu12.04 syslog记录正常与非正常关机重启
##正常关机重启
Jul 12 16:59:50 ubuntu3 kernel: Kernel logging (proc) stopped.
Jul 12 16:59:50 ubuntu3 rsyslogd: [origin software="rsyslogd" swVersion="5.8.6" x-pid="943" x-info="http://www.rsyslog.com"] exiting on signal 15.
Jul 12 17:00:10 ubuntu3 kernel: imklog 5.8.6, log source = /proc/kmsg started.
Jul 12 17:00:10 ubuntu3 rsyslogd: [origin software="rsyslogd" swVersion="5.8.6" x-pid="1000" x-info="http://www.rsyslog.com"] start
Jul 12 17:00:10 ubuntu3 rsyslogd: rsyslogd‘s groupid changed to 103
Jul 12 17:00:10 ubuntu3 rsyslogd: rsyslogd‘s userid changed to 101
Jul 12 17:00:10 ubuntu3 rsyslogd-2039: Could not open output pipe ‘/dev/xconsole‘ [try http://www.rsyslog.com/e/2039 ]
Jul 12 17:00:10 ubuntu3 kernel: [ 0.000000] Initializing cgroup subsys cpuset
Jul 12 17:00:10 ubuntu3 kernel: [ 0.000000] Initializing cgroup subsys cpu
Jul 12 17:00:10 ubuntu3 kernel: [ 0.000000] Initializing cgroup subsys cpuacct
Jul 12 17:00:10 ubuntu3 kernel: [ 0.000000] Linux version 3.13.0-32-generic (buildd@phianna) (gcc version 4.6.3 (Ubuntu/Linaro 4.6.3-1ubuntu5) ) #57~precise1-Ubuntu SMP Tue Jul 15 03:51:20 UTC 2014 (Ubuntu 3.13.0-32.57~precise1-generic 3.13.11.4)
Jul 12 17:00:10 ubuntu3 kernel: [ 0.000000] Command line: BOOT_IMAGE=/vmlinuz-3.13.0-32-generic root=/dev/mapper/ubuntu2--vg-root ro
Jul 12 17:00:10 ubuntu3 kernel: [ 0.000000] KERNEL supported cpus:
Jul 12 17:00:10 ubuntu3 kernel: [ 0.000000] Intel GenuineIntel
Jul 12 17:00:10 ubuntu3 kernel: [ 0.000000] AMD AuthenticAMD
Jul 12 17:00:10 ubuntu3 kernel: [ 0.000000] Centaur CentaurHauls
Jul 12 17:00:10 ubuntu3 kernel: [ 0.000000] Disabled fast string operations
Jul 12 17:00:10 ubuntu3 kernel: [ 0.000000] e820: BIOS-provided physical RAM map:
Jul 12 17:00:10 ubuntu3 kernel: [ 0.000000] BIOS-e820: [mem 0x0000000000000000-0x000000000009e7ff] usable
Jul 12 17:00:10 ubuntu3 kernel: [ 0.000000] BIOS-e820: [mem 0x000000000009e800-0x000000000009ffff] reserved
##非正常关机
Jul 12 17:08:17 ubuntu3 kernel: imklog 5.8.6, log source = /proc/kmsg started.
Jul 12 17:08:17 ubuntu3 rsyslogd: [origin software="rsyslogd" swVersion="5.8.6" x-pid="1106" x-info="http://www.rsyslog.com"] start
Jul 12 17:08:17 ubuntu3 rsyslogd: rsyslogd‘s groupid changed to 103
Jul 12 17:08:17 ubuntu3 rsyslogd: rsyslogd‘s userid changed to 101
Jul 12 17:08:17 ubuntu3 rsyslogd-2039: Could not open output pipe ‘/dev/xconsole‘ [try http://www.rsyslog.com/e/2039 ]
Jul 12 17:08:17 ubuntu3 kernel: [ 0.000000] Initializing cgroup subsys cpuset
Jul 12 17:08:17 ubuntu3 kernel: [ 0.000000] Initializing cgroup subsys cpu
Jul 12 17:08:17 ubuntu3 kernel: [ 0.000000] Initializing cgroup subsys cpuacctJul 12 17:08:17 ubuntu3 kernel: [ 0.000000] Linux version 3.13.0-32-generic (buildd@phianna) (gcc version 4.6.3 (Ubuntu/Linaro 4.6.3-1ubuntu5) ) #57~precise1-Ubuntu SMP Tue Jul 15 03:51:20 UTC 2014 (Ubuntu 3.13.0-32.57~precise1-generic 3.13.11.4)
Jul 12 17:08:17 ubuntu3 kernel: [ 0.000000] Command line: BOOT_IMAGE=/vmlinuz-3.13.0-32-generic root=/dev/mapper/ubuntu2--vg-root ro
Jul 12 17:08:17 ubuntu3 kernel: [ 0.000000] KERNEL supported cpus:
Jul 12 17:08:17 ubuntu3 kernel: [ 0.000000] Intel GenuineIntel
Jul 12 17:08:17 ubuntu3 kernel: [ 0.000000] AMD AuthenticAMD
Jul 12 17:08:17 ubuntu3 kernel: [ 0.000000] Centaur CentaurHauls
Jul 12 17:08:17 ubuntu3 kernel: [ 0.000000] Disabled fast string operations
Jul 12 17:08:17 ubuntu3 kernel: [ 0.000000] e820: BIOS-provided physical RAM map:
Jul 12 17:08:17 ubuntu3 kernel: [ 0.000000] BIOS-e820: [mem 0x0000000000000000-0x000000000009e7ff] usable
Jul 12 17:08:17 ubuntu3 kernel: [ 0.000000] BIOS-e820: [mem 0x000000000009e800-0x000000000009ffff] reserved
##对比发现正常关机重启比非正常关机重启多了两行:
Jul 12 16:59:50 ubuntu3 kernel: Kernel logging (proc) stopped.
Jul 12 16:59:50 ubuntu3 rsyslogd: [origin software="rsyslogd" swVersion="5.8.6" x-pid="943" x-info="http://www.rsyslog.com"] exiting on signal 15.
本文出自 “态度决定一切” 博客,请务必保留此出处http://relearn.blog.51cto.com/2605709/1825802