John Baldwin
a0f01ecb62
Add the ability to run /usr/sbin/crashinfo on a new core dump automatically
...
during boot. Right now this is disabled by default, but it can be enabled
by setting 'crashinfo_enable=YES' in rc.conf.
MFC after: 2 weeks
2008-08-29 20:30:30 +00:00
Mike Makonnen
9300b74ce4
Remove the $DUMPDIR variable. It's redundant and the rest of the
...
script uses $dumpdir directly.
2008-07-06 08:31:29 +00:00
Mike Makonnen
f562910214
Make checking for the availability of core dumps work in the case
...
that $dumpdev is not set to "AUTO".
Reported by: Paul B. Mahol <onemda@gmail.com>
2008-07-06 07:51:29 +00:00
Mike Makonnen
2794059010
Run savecore(8) only if there is a core dump to save. If there is
...
no core dump hide the message to that effect behind $rc_quiet.
2008-06-23 20:54:32 +00:00
Mike Makonnen
94789e5ca4
Move a lot of diagnostic output behind $rc_quiet in scripts that
...
implement their own start command.
2008-06-23 04:46:54 +00:00
Doug Barton
e3c46a3332
Remove $NetBSD$ CVS tags. We no longer attempt to synch our rc.d files
...
with theirs, so this information doesn't need to be in the live file.
Having it in our CVS history is enough.
2007-12-08 07:20:23 +00:00
Dag-Erling Smørgrav
82a21971a6
- use realpath /dev/dumpdev
instead of just /dev/dumpdev so messages
...
will show the real device name
- show different error messages for missing dump device and directory
2004-10-24 13:04:09 +00:00
Thomas Quinot
e30c35ed0c
When dumpdev is set to 'auto', and a suitable swap device is found,
...
create a symbolic link /dev/dumpdev designating that device so
savecore can find and save a previous kernel dump.
2004-10-18 23:40:13 +00:00
Mike Makonnen
337338ee00
Remove the requirement for the FreeBSD keyword as it no longer
...
makes any sense.
Discussed with: dougb, brooks
MFC after: 3 days
2004-10-07 13:55:26 +00:00
Chad David
450e8255a1
Echo and pass dumpdev as the device argument to savecore.
...
PR: bin/51655
2004-03-18 15:18:20 +00:00
Pawel Jakub Dawidek
bd57d5b0f5
Mark scripts as not usable inside a jail by adding keyword 'nojail'.
...
Some suggestions from: rwatson, Ruben de Groot <mail25@bzerk.org>
2004-03-08 12:25:05 +00:00
Mike Makonnen
82387f41ed
Luke Mewburn has indicated that they (NetBSD) are not interested
...
in keeping the scripts under rc.d in sync with us. So, remove
NetBSD specific stuff (which made our scripts more complicated
than necessary).
The NetBSD ident string will be left intact, both for history and
also incase we wish to pull in future versions.
2004-01-17 10:59:43 +00:00
Mike Makonnen
1afce00360
Luke Mewburn has indicated that they (NetBSD) are not interested
...
in keeping the scripts under rc.d in sync with us. So, begin removal
of NetBSD specific stuff (which made our scripts more complicated
than necessary), starting with the NetBSD KEYWORD.
2004-01-17 10:16:38 +00:00
Gordon Tetlow
77e55efba0
Convert from ${CMD_OSTYPE}
to ${OSTYPE}. This saves a shell invocation on
...
OS-dependent case switches.
2002-09-06 16:18:05 +00:00
Gordon Tetlow
27bc1b287e
Merge in all the changes that Mike Makonnen has been maintaining for a
...
while. This is only the script pieces, the glue for the build comes next.
Submitted by: Mike Makonnen <makonnen@pacbell.net>
Reviewed by: silence on -current and -hackers
Prodded by: rwatson
2002-06-13 22:14:37 +00:00
David E. O'Brien
9d62501fd8
Import the NetBSD 1.5 RC system.
...
Note that `rc' and `rc.shutdown' could not be imported because we already
have files with those names.
2001-06-16 07:16:14 +00:00