Commit 00275918 authored by Per Cederqvist's avatar Per Cederqvist
Browse files

(parameters): Moved a few entries around, so that they fit under the

	various headings.
parent df8e0249
/*
* $Id: server-config.c,v 0.53 1999/04/17 15:16:20 ceder Exp $
* $Id: server-config.c,v 0.54 1999/04/17 18:46:38 ceder Exp $
* Copyright (C) 1991, 1992, 1993, 1994, 1995, 1996 Lysator Academic Computer Association.
*
* This file is part of the LysKOM server.
......@@ -37,7 +37,7 @@
#endif
static const char *
rcsid = "$Id: server-config.c,v 0.53 1999/04/17 15:16:20 ceder Exp $";
rcsid = "$Id: server-config.c,v 0.54 1999/04/17 18:46:38 ceder Exp $";
#include "rcs.h"
USE(rcsid);
......@@ -70,11 +70,13 @@ static Success log_param(const char *val, const struct parameter *par);
static Success jubel(const char *val, const struct parameter *par);
static Success ident_param(const char *val, const struct parameter *par);
/* See lyskomd.8 for more info about the parameters.
Please remember to update lyskomd.8 if you add more parameters!
Try to keep this list and the list in lyskomd.8 in the same order. */
/* See lyskomd.texi for more info about the parameters.
Please remember to update lyskomd.texi if you add more parameters!
Try to keep this list and the list in lyskomd.texi in the same order. */
static const struct parameter parameters[] = {
/* "Normal" configuration */
{"Locale",
assign_string, 0, 1, NULL, &param.use_locale},
{"Force ISO 8859-1",
......@@ -107,7 +109,9 @@ static const struct parameter parameters[] = {
{"Log accesses",
assign_string, 0, 1, NULL, &param.logaccess_file},
#endif
/* The database files. */
{"Data file",
assign_string, 0, 1, "db/lyskomd-data", &param.datafile_name},
{"Backup file",
......@@ -120,7 +124,9 @@ static const struct parameter parameters[] = {
{"Text backup file",
assign_string, 0, 1, "db/lyskomd-texts-backup",
&param.textbackupfile_name},
/* Various log files */
{"Log file",
assign_string, 0, 1, "etc/server-log", &param.logfile_name},
{"Log statistics",
......@@ -129,22 +135,30 @@ static const struct parameter parameters[] = {
assign_string, 0, 1, "etc/pid", &param.pid_name},
{"Memory usage file",
assign_string, 0, 1, "etc/memory-usage", &param.memuse_name},
/* Other files. */
{"Aux-item definition file",
assign_string, 0, 1, "etc/aux-items.conf", &param.aux_def_file},
{"Status file",
assign_string, 0, 1, "etc/status", &param.status_file},
/* Where to dump core. */
{"Core directory",
assign_string, 0, 1, "cores", &param.core_dir},
/* Performance tuning parameters (milliseconds) */
{"Idle timeout",
assign_int, 0, 1, "120000", &param.timeout},
{"Garb timeout",
assign_int, 0, 1, "100", &param.garbtimeout},
{"Sync timeout",
assign_int, 0, 1, "0", &param.synctimeout},
/* Performance tuning parameters (minutes) */
{"Garb interval",
assign_int, 0, 1, "1440", &param.garb_interval},
{"Permissive sync",
......@@ -153,7 +167,18 @@ static const struct parameter parameters[] = {
assign_int, 0, 1, "5", &param.sync_interval},
{"Sync retry interval",
assign_int, 0, 1, "1", &param.sync_retry_interval},
/* More performance tuning. */
{"Max client transmit queue",
assign_int, 0, 1, "300", &param.maxqueuedsize},
{"Max simultaneous client replies",
assign_int, 0, 1, "10", &param.maxdequeuelen},
{"Open files",
assign_int, 0, 1, "-1", &param.no_files},
/* String limits */
{"Max conference name length",
assign_int, 0, 1, "60", &param.conf_name_len},
{"Max password length",
......@@ -168,7 +193,9 @@ static const struct parameter parameters[] = {
assign_int, 0, 1, "1024", &param.broadcast_len},
{"Max regexp length",
assign_int, 0, 1, "1024", &param.regexp_len},
/* Text_stat limits */
{"Max marks per person",
assign_int, 0, 1, "2048", &param.max_marks_person},
{"Max marks per text",
......@@ -181,7 +208,9 @@ static const struct parameter parameters[] = {
assign_int, 0, 1, "32", &param.max_foot},
{"Max links per text",
assign_int, 0, 1, "512", &param.max_crea_misc},
/* Other client-visible configuration */
{"Max mark_as_read chunks",
assign_int, 0, 1, "128", &param.mark_as_read_chunk},
{"Max accept_async len",
......@@ -196,13 +225,11 @@ static const struct parameter parameters[] = {
assign_int, 0, 1, "77", &param.default_nice},
{"Default keep commented nice",
assign_int, 0, 1, "77", &param.default_keep_commented},
{"Max client transmit queue",
assign_int, 0, 1, "300", &param.maxqueuedsize},
{"Max simultaneous client replies",
assign_int, 0, 1, "10", &param.maxdequeuelen},
{"Open files",
assign_int, 0, 1, "-1", &param.no_files},
{"Regexps use collate table",
assign_bool, 0, 1, "on", &param.regex_use_collate_table},
/* Security options */
{"Anyone can create new persons",
assign_bool, 0, 1, "yes", &param.anyone_can_create_new_persons},
{"Anyone can create new conferences",
......@@ -211,32 +238,38 @@ static const struct parameter parameters[] = {
assign_bool, 0, 1, "yes", &param.create_person_before_login},
{"Default change name capability",
assign_bool, 0, 1, "on", &param.default_change_name},
{"Add members by invitation",
assign_bool, 0, 1, "on", &param.invite_by_default},
{"Allow secret memberships",
assign_bool, 0, 1, "on", &param.secret_memberships},
{"Allow reinvitations",
assign_bool, 0, 1, "off", &param.allow_reinvite},
{"Log login",
assign_bool, 0, 1, "off", &param.log_login},
{"Ident-authentication",
ident_param, 0, 1, "try", &param.authentication_level},
/* Cache configuration */
{"Cache conference limit",
assign_int, 0, 1, "20", &param.cache_conferences},
{"Cache person limit",
assign_int, 0, 1, "20", &param.cache_persons},
{"Cache text_stat limit",
assign_int, 0, 1, "20", &param.cache_text_stats},
/* Echo the value to the log. */
{"Echo",
log_param, 0, -1, NULL, NULL},
/* Register a forbidden text number. */
{"Jubel",
jubel, 0, -1, NULL, NULL},
{"Ident-authentication",
ident_param, 0, 1, "try", &param.authentication_level},
{"Add members by invitation",
assign_bool, 0, 1, "on", &param.invite_by_default},
{"Allow secret memberships",
assign_bool, 0, 1, "on", &param.secret_memberships},
{"Allow reinvitations",
assign_bool, 0, 1, "off", &param.allow_reinvite},
{"Regexps use collate table",
assign_bool, 0, 1, "on", &param.regex_use_collate_table},
/* end marker */
{NULL, NULL, 0, 0, NULL, NULL}};
/* Where to save things. These are used by lyskomd and dbck. */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment