summaryrefslogtreecommitdiffstats
path: root/etc/rc.d
diff options
context:
space:
mode:
authorbapt <bapt@FreeBSD.org>2016-04-29 12:23:56 +0000
committerbapt <bapt@FreeBSD.org>2016-04-29 12:23:56 +0000
commit72855a7c5d57ba89b8d5088dda0721c4d87d3a1b (patch)
treeab9960718ecbf0a712f58ffe636104adf6ea3bcd /etc/rc.d
parent7ce4e4a1a71bff2705458ce3b39629608fab3962 (diff)
downloadFreeBSD-src-72855a7c5d57ba89b8d5088dda0721c4d87d3a1b.zip
FreeBSD-src-72855a7c5d57ba89b8d5088dda0721c4d87d3a1b.tar.gz
Add a savecore_enable variable support for the savecore rc script
By default set to 'YES' so it does not change the current behaviour for users, this variable allows to decide to not extract crach dumps from the dump device at boot time by setting it to "NO" in rc.conf. Sponsored by: Gandi.net
Diffstat (limited to 'etc/rc.d')
-rwxr-xr-xetc/rc.d/savecore1
1 files changed, 1 insertions, 0 deletions
diff --git a/etc/rc.d/savecore b/etc/rc.d/savecore
index 56a34ff..bfc61bc 100755
--- a/etc/rc.d/savecore
+++ b/etc/rc.d/savecore
@@ -10,6 +10,7 @@
. /etc/rc.subr
name="savecore"
+rcvar="savecore_enable"
desc="Save a core dump of the operating system"
start_cmd="savecore_start"
start_precmd="savecore_prestart"
OpenPOWER on IntegriCloud