From 12a5f63e643d083fa10a39e33a6dbb36b08a3cd5 Mon Sep 17 00:00:00 2001
From: Per Cederqvist <ceder@lysator.liu.se>
Date: Mon, 31 Mar 2008 19:21:23 +0000
Subject: [PATCH] Turn off the garb by default, due to popular request. *
 doc/lyskomd.texi (Parameters): Changed "Garb" from "on" to "off".
 (Administration): Suggest that the administrator may want to turn on the
 garb. * src/server/server-config.c (parameters): Changed "Garb" from "on" to
 "off".

---
 ChangeLog                  | 10 ++++++++++
 doc/lyskomd.texi           |  6 +++++-
 src/server/server-config.c |  2 +-
 3 files changed, 16 insertions(+), 2 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index a24a9b14f..e4690794b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,13 @@
+2008-03-31  Per Cederqvist  <ceder@lysator.liu.se>
+
+	Turn off the garb by default, due to popular request.
+	* doc/lyskomd.texi (Parameters): Changed "Garb" from "on" to
+	"off".
+	(Administration): Suggest that the administrator may want to turn
+	on the garb.
+	* src/server/server-config.c (parameters): Changed "Garb" from
+	"on" to "off".
+
 2007-07-14  Per Cederqvist  <ceder@lysator.liu.se>
 
 	Fixed a broken example in the documentation.
diff --git a/doc/lyskomd.texi b/doc/lyskomd.texi
index fc3d5b907..32e23bc27 100644
--- a/doc/lyskomd.texi
+++ b/doc/lyskomd.texi
@@ -335,7 +335,7 @@ option is ignored in lyskomd 1.9 and later. Set this using dbck or the
 
 @item Garb: @var{bool}
 Should the database be automatically purged of old texts?  The default
-is on.
+is off.
 
 @item Never save: @var{bool}
 Completely disables saving the database. Do not set this to @code{true}
@@ -1286,6 +1286,10 @@ old texts are never removed. The information file contains information
 about conferences, users and where in the text file the texts are. This
 file is properly garbage collected, but not the text file.
 
+You may want to enable the garb, so that old texts are automatically
+removed.  Be default, the garb is disabled, to avoid losing texts.
+@xref{Parameters}.
+
 There is a program called @code{dbck} (Data Base Check) which is used
 to check the consistency of the LysKOM database. This program can also
 be used to shrink the text file. To do this, just type @samp{dbck
diff --git a/src/server/server-config.c b/src/server/server-config.c
index 286f4dd4c..6cf9f3eb1 100644
--- a/src/server/server-config.c
+++ b/src/server/server-config.c
@@ -132,7 +132,7 @@ static const struct parameter parameters[] = {
 	 &cf_text_no, 	       0, 1, "0", &kom_info.motd_of_lyskom,
          NULL},
     {"Garb",
-	 &cf_bool, 	       0, 1, "on", &param.garb_enable,
+	 &cf_bool, 	       0, 1, "off", &param.garb_enable,
          NULL},
     {"Never save",
 	 &cf_bool, 	       0, 1, "no", &param.never_save,
-- 
GitLab