From d15a30cf3e666148fd771304f052e66f3d4182de Mon Sep 17 00:00:00 2001 From: Pasi Kallinen Date: Tue, 1 Jan 2008 20:43:13 +0000 Subject: [PATCH] Update the example config file, and allow comment-lines in it to have spaces or tabs before '#' git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@398 db0b04b0-f4d1-0310-9a6d-de3e77497b0e --- config.l | 2 +- examples/dgamelaunch.conf | 186 +++++++++++++++++++------------------- 2 files changed, 93 insertions(+), 95 deletions(-) diff --git a/config.l b/config.l index d0bfaa8..590664e 100644 --- a/config.l +++ b/config.l @@ -19,8 +19,8 @@ NEGNUMBER -[0-9]+ NUMBER [0-9]+ VALUE \"[^"]*\" MALSTRING \"[^\"\n]*\n +COMMENT ^[\t ]*#.* WHITE [\t ]* -COMMENT ^#.* %% diff --git a/examples/dgamelaunch.conf b/examples/dgamelaunch.conf index 3a6a8c9..a2c728d 100644 --- a/examples/dgamelaunch.conf +++ b/examples/dgamelaunch.conf @@ -1,13 +1,14 @@ # This is a sample dgamelaunch configuration file. Only bash-style comments # are allowed, such as this. Each configuration option will be explained -# along with its default value. +# along with its default value. # Global config variables: -# Max amount of registered users to allow. +# Max amount of registered users to allow. Has no effect if dgl was +# compiled with SQLite maxusers = 64000 # Allow registration of new nicks? (0 or 1) @@ -26,9 +27,11 @@ dglroot = "/dgldir/" # From inside the jail, location of a banner file that contains no more than # 14 lines of 80-column width text. Any more will be truncated. +# The topmost line will be shown even in submenus. +# string $VERSION will be replaced with dgl version number. banner = "/dgl-banner" -# The following two options are fairly insecure. They will force us to +# The following two options are fairly insecure. They will force us to # load the password/group database into memory while still having root # privileges. Replace them with shed_uid/shed_gid entries as soon as # possible if you decide to use them. dgamelaunch will inform you of @@ -49,33 +52,41 @@ shed_gid = 60 # The defaults are usually just fine for this. passwd refers to the file # that stores the user database, and lockfile is only used internally by # dgamelaunch. - +# passwd doesn't matter if dgl was compiled with SQLite, as the name of +# the sqlite database will be defined at compile time. passwd = "/dgl-login" lockfile = "/dgl-lock" - # # define some commands that are run when something happens. format is # commands [