From b77763cc8c6ac61cec3511d04859ff81e45042f6 Mon Sep 17 00:00:00 2001 From: Mike Karels Date: Sun, 25 May 1986 05:58:44 -0800 Subject: [PATCH] new logging SCCS-vsn: sbin/savecore/savecore.8 6.3 SCCS-vsn: sbin/reboot/halt.8 6.2 SCCS-vsn: sbin/reboot/boot_vax.8 6.3 --- usr/src/sbin/reboot/boot_vax.8 | 16 ++++++++++++++-- usr/src/sbin/reboot/halt.8 | 15 +++++++++++++-- usr/src/sbin/savecore/savecore.8 | 17 +++++++++-------- 3 files changed, 36 insertions(+), 12 deletions(-) diff --git a/usr/src/sbin/reboot/boot_vax.8 b/usr/src/sbin/reboot/boot_vax.8 index 5e57cde549..cdcdc598a8 100644 --- a/usr/src/sbin/reboot/boot_vax.8 +++ b/usr/src/sbin/reboot/boot_vax.8 @@ -2,7 +2,7 @@ .\" All rights reserved. The Berkeley software License Agreement .\" specifies the terms and conditions for redistribution. .\" -.\" @(#)boot_vax.8 6.2 (Berkeley) %G% +.\" @(#)boot_vax.8 6.3 (Berkeley) %G% .\" .TH REBOOT 8 "" .UC 4 @@ -45,6 +45,17 @@ is on fire. reboots quickly and ungracefully, without shutting down running processes first. .PP +.I Reboot +normally logs the reboot using +.IR syslog (8) +and places a shutdown record in the login accounting file +/usr/adm/wtmp. +These actions are inhibited if the +.B \-n +or +.B \-q +options are present. +.PP .B "Power fail and crash recovery." Normally, the system will reboot itself at power-up or after crashes. Provided the auto-restart is enabled on the machine front panel, @@ -197,4 +208,5 @@ halt(8), init(8), newfs(8), rc(8), -shutdown(8) +shutdown(8), +syslogd(8) diff --git a/usr/src/sbin/reboot/halt.8 b/usr/src/sbin/reboot/halt.8 index c115ad529f..9414fecb90 100644 --- a/usr/src/sbin/reboot/halt.8 +++ b/usr/src/sbin/reboot/halt.8 @@ -2,7 +2,7 @@ .\" All rights reserved. The Berkeley software License Agreement .\" specifies the terms and conditions for redistribution. .\" -.\" @(#)halt.8 6.1 (Berkeley) %G% +.\" @(#)halt.8 6.2 (Berkeley) %G% .\" .TH HALT 8 "" .UC 4 @@ -32,8 +32,19 @@ option prevents the sync before stopping. The option causes a quick halt, no graceful shutdown is attempted. The .B \-y option is needed if you are trying to halt the system from a dialup. +.PP +.I Halt +normally logs the shutdown using +.IR syslog (8) +and places a shutdown record in the login accounting file +/usr/adm/wtmp. +These actions are inhibited if the +.B \-n +or +.B \-q +options are present. .SH SEE ALSO -reboot(8), shutdown(8) +reboot(8), shutdown(8), syslogd(8) .SH BUGS It is very difficult to halt a VAX, as the machine wants to then reboot itself. A rather tight loop suffices. diff --git a/usr/src/sbin/savecore/savecore.8 b/usr/src/sbin/savecore/savecore.8 index 2ae3c61f44..35b8099a5d 100644 --- a/usr/src/sbin/savecore/savecore.8 +++ b/usr/src/sbin/savecore/savecore.8 @@ -2,7 +2,7 @@ .\" All rights reserved. The Berkeley software License Agreement .\" specifies the terms and conditions for redistribution. .\" -.\" @(#)savecore.8 6.2 (Berkeley) %G% +.\" @(#)savecore.8 6.3 (Berkeley) %G% .\" .TH SAVECORE 8 "" .UC 4 @@ -23,7 +23,7 @@ write a reboot message in the shutdown log. Savecore checks the core dump to be certain it corresponds with the current running unix. If it does it saves the core image in the file .IR dirname /vmcore.n -and it's brother, the namelist, +and its brother, the namelist, .IR dirname /vmunix.n The trailing ".n" in the pathnames is replaced by a number which grows every time @@ -32,18 +32,19 @@ is run in that directory. .PP Before savecore writes out a core image, it reads a number from the file .IR dirname /minfree. -If the number of free bytes on the filesystem which contains +If the number of free kilobytes on the filesystem which contains .I dirname -is less than the number obtained from the minfree file times 1024, -the core dump is not done. +is less than the number obtained from the minfree file, +the core dump is not saved. If the minfree file does not exist, savecore always writes out the core file (assuming that a core dump was taken). .PP .I Savecore -also writes a reboot message in the shut down log. If the system crashed -as a result of a panic, +also logs a reboot message using facility LOG_AUTH (see +.IR syslog (3)) +If the system crashed as a result of a panic, .I savecore -records the panic string in the shut down log too. +logs the panic string too. .PP If the core dump was from a system other than /vmunix, the name of that system must be supplied as -- 2.20.1