Browse Source

Permit flags to be set for savecore, e.g. to compress core dumps

ok millert@ fgsch@
OPENBSD_3_1
tholo 23 years ago
parent
commit
723da669c7
2 changed files with 4 additions and 3 deletions
  1. +2
    -2
      src/etc/rc
  2. +2
    -1
      src/etc/rc.conf

+ 2
- 2
src/etc/rc View File

@ -1,4 +1,4 @@
# $OpenBSD: rc,v 1.187 2001/12/30 16:34:50 markus Exp $
# $OpenBSD: rc,v 1.188 2002/01/08 12:04:43 tholo Exp $
# System startup script run by init on autoboot # System startup script run by init on autoboot
# or after single-user. # or after single-user.
@ -302,7 +302,7 @@ swapctl -A -t noblk
# /var/crash should be a directory or a symbolic link # /var/crash should be a directory or a symbolic link
# to the crash directory if core dumps are to be saved. # to the crash directory if core dumps are to be saved.
if [ -d /var/crash ]; then if [ -d /var/crash ]; then
savecore /var/crash
savecore ${savecore_flags} /var/crash
fi fi
if [ "X${afs}" = X"YES" -a -c ${afs_device} -a -d ${afs_mount_point} ]; then if [ "X${afs}" = X"YES" -a -c ${afs_device} -a -d ${afs_mount_point} ]; then


+ 2
- 1
src/etc/rc.conf View File

@ -1,6 +1,6 @@
#!/bin/sh - #!/bin/sh -
# #
# $OpenBSD: rc.conf,v 1.71 2001/11/19 03:03:33 deraadt Exp $
# $OpenBSD: rc.conf,v 1.72 2002/01/08 12:04:43 tholo Exp $
# set these to "NO" to turn them off. otherwise, they're used as flags # set these to "NO" to turn them off. otherwise, they're used as flags
routed_flags=NO # for normal use: "-q" routed_flags=NO # for normal use: "-q"
@ -72,6 +72,7 @@ multicast_router=NO # A multicast routing daemon will be run, e.g. mrouted
# miscellaneous other flags # miscellaneous other flags
# only used if the appropriate server is marked YES above # only used if the appropriate server is marked YES above
savecore_flags= # "-z" to compress
gated_flags= gated_flags=
ypserv_flags= # E.g. -1 for YP v1, -d for DNS etc ypserv_flags= # E.g. -1 for YP v1, -d for DNS etc
yppasswdd_flags= # "-d /etc/yp" if passwd files are in /etc/yp yppasswdd_flags= # "-d /etc/yp" if passwd files are in /etc/yp


Loading…
Cancel
Save