dev-serveez
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [dev-serveez] Avoiding code fork/duplication of serveez cfg code


From: Thien-Thi Nguyen
Subject: Re: [dev-serveez] Avoiding code fork/duplication of serveez cfg code
Date: 28 Nov 2002 00:16:44 -0500

Andreas Rottmann <address@hidden> writes:

   I'll have a look at it.

fyi, to save you the trouble, i've included below a sample wikid.conf.
the form is internalized w/ a single (read (open-input-file ...)) in
src/wikid/config.scm.  the notable step in the otherwise mundane config
processing is the translation from an external tag to the internal one.
e.g., external: `max-msg', internal: `max-msg-size'.  this is to reserve
some flexibility for the internals.  i hope the system you design can
support that (or at least allow it to be supported easily).

thi

__________________________________________________________________________
;;; wikid.conf --- example configuration for WIKID      -*- scheme -*-
;;; Rel:v-1-0-release

;; Copyright (C) 2002 Thien-Thi Nguyen
;; This file is part of WIKID, released under GNU GPL, with ABSOLUTELY
;; NO WARRANTY.  See the file COPYING for details.

;;; Commentary:

;; This file defines the configuration for one instance of WIKID.
;; Canonical form:
;;
;;    (NAME
;;     ;; This is a symbol (no quotes), unlike the strings below.
;;
;;     (dispatch . "/LOGICAL/PATH/TO/wikid.cgi")
;;                 ;; This is the path passed back into the web server so be
;;                 ;; aware of "ScriptAlias" (if using Apache) and the like.
;;
;;     (fs-cgi   . "/ABSOLUTE/PATH/TO/wikid.cgi")
;;                 ;; This is the filesystem path where the wikid.cgi is to
;;                 ;; be installed (at which time other config values are
;;                 ;; hard-coded into the executable for speed).  Note that
;;                 ;; the basename should match the one used for `dispatch'.
;;
;;     (port     . NUMBER)
;;                 ;; At this time wikid.cgi communicates with the wikid
;;                 ;; daemon through this port.  Probably in the future we
;;                 ;; will also support a named-pipe (fifo) mechanism.
;;
;;     (max-msg  . NUMBER-OF-BYTES)
;;                 ;; This limits the size of the messages sent between
;;                 ;; wikid.cgi and the daemon.  User-visible web pages
;;                 ;; can never exceed NUMBER-OF-BYTES (and will probably
;;                 ;; be less due to HTTP and other overhead).
;;
;;     (var-dir  . "/DIRECTORY/FOR/RUNTIME-INFO/")
;;                 ;; The page databases are kept in this directory.
;;                 ;; It should end in a slash ("/").
;;
;;     (log-file . "/PATH/TO/LOGFILE")
;;                 ;; This can also be set to the value #f (without quotes)
;;                 ;; for no log file.
;;
;;     (pid-file . "/PATH/TO/PIDFILE")
;;                 ;; This file contains the process id (PID) of the daemon
;;                 ;; during operation.  When the daemon is shut down using
;;                 ;; "wikid-admin -C config stop", this file is deleted.
;;
;;     )
;;     ;; end of canonical form
;;
;; Note the "." between the field names and the field values.

;;; Code:

(example
 (dispatch      . "/cgi-bin/wikid.cgi")
 (fs-cgi        . "/var/www/cgi-bin/wikid.cgi")
 (port          . 9091)
 (max-msg       . 16384)                ; 16 kilobytes
 (var-dir       . "/var/www/cgi-bin/wikid/var/")
 (log-file      . "/var/www/cgi-bin/wikid/var/log")
 (pid-file      . "/var/www/cgi-bin/wikid/var/pid"))

;;; wikid.conf ends here




reply via email to

[Prev in Thread] Current Thread [Next in Thread]