Describe resource and logbook directories

SVN revision: 317
This commit is contained in:
Stefan Ritt 2003-01-07 21:17:42 +00:00
parent 6441f876b5
commit 5485e14237
2 changed files with 65 additions and 28 deletions

View File

@ -230,7 +230,10 @@ and keep the other options as they are. After pressing "OK" the daemon should be
<li><code>-p &lt;port></code> : TCP port number to use for the http server (if other than 80) <li><code>-p &lt;port></code> : TCP port number to use for the http server (if other than 80)
<li><code>-h &lt;hostname or IP address></code> : in the case of a "multihomed" server, host name or IP address of the interface ELOG should run on <li><code>-h &lt;hostname or IP address></code> : in the case of a "multihomed" server, host name or IP address of the interface ELOG should run on
<li><code>-D</code> : become a daemon (Unix only) <li><code>-D</code> : become a daemon (Unix only)
<li><code>-c &lt;file></code> : specify the configuration file (full path mandatory if -D is used) <li><code>-c &lt;file&gt;</code> : specify the configuration file (full path mandatory if -D is used)
<li><code>-s &lt;dir&gt;</code> specify resource directory (themes, icons, ...)
<li><code>-d &lt;dir&gt;</code> specify logbook root directory
<li><code>-v </code> : verbose output for debugging <li><code>-v </code> : verbose output for debugging
<li><code>-k </code> : do not use TCP keep-alive <li><code>-k </code> : do not use TCP keep-alive
</ul> </ul>
@ -244,15 +247,25 @@ It may also be used to generate passwords :
<li><code>-a &lt;pwd></code> : create/overwrite administrative password in config file <li><code>-a &lt;pwd></code> : create/overwrite administrative password in config file
<li><code>-l &lt;logbook></code> : specify logbook for -r and -w commands <li><code>-l &lt;logbook></code> : specify logbook for -r and -w commands
</ul> </ul>
<p> The appearance, functionality and behaviour of the various logbooks on an <b>ELOG</b> server are
determined by the single <b><code>elogd.cfg</code></b> file in the <b>ELOG</b> installation directory.
<p> <p>
The appearance, functionality and behaviour of the various logbooks on an <b>ELOG</b> server are determined by the single <b><code>elogd.cfg</code></b> file in the <b>ELOG</b> installation directory.
<p> This file may be edited directly from the file system, or from a form in the <b>ELOG</b> Web interface
This file may be edited directly from the file system, or from a form in the <b>ELOG</b> Web interface (when the <i>Config</i> menu item is available). In this case, changes are applied dynamically without having to restart the server. (when the <i>Config</i> menu item is available). In this case, changes are applied dynamically without
<p> having to restart the server. <p>
The many options of this unique but very important file are documented on the separate <b><a href="config.html">elogd.cfg syntax page</a></b>.
<p> The many options of this unique but very important file are documented on the separate <b><a href=
To better control appearance and layout of the logbooks, <b><code>elogd.cfg</code></b> may optionally specify the use of additional files containing HTML code, and/or custom "<I>themes</I>" configurations. These need to be edited directly from the file system right now. "config.html">elogd.cfg syntax page</a></b>.<p>
<p>
To better control appearance and layout of the logbooks, <b><code>elogd.cfg</code></b> may
optionally specify the use of additional files containing HTML code, and/or custom "<I>themes</I>"
configurations. These need to be edited directly from the file system right now. <p>
The meaning of the directory flags <b><code>-s</b></code> and <b><code>-d</b></code> is explained
in the section covering the configuration options <b><code>Resource dir</b></code> and <b><code>
Logbook dir</b></code> in the <b><a href="config.html">elogd.cfg description</a></b>.<p>
<hr><a name="secure"> <hr><a name="secure">
<div class=section>&nbsp; Secure Connections HOWTO &nbsp;</div> <div class=section>&nbsp; Secure Connections HOWTO &nbsp;</div>

View File

@ -51,7 +51,6 @@ SMTP host = mailsend.your.domain
[Linux] [Linux]
Theme = default Theme = default
Comment = General linux tips and tricks Comment = General linux tips and tricks
Data dir = /usr/local/elog/linux
Attributes = Author, Type, Category, Subject Attributes = Author, Type, Category, Subject
Options Type = Routine, Software Installation, Problem Fixed, Configuration, Other Options Type = Routine, Software Installation, Problem Fixed, Configuration, Other
Options Category = General, Hardware, Software, Network, Account, Other Options Category = General, Hardware, Software, Network, Account, Other
@ -60,7 +59,6 @@ Required Attributes = Author
[PC] [PC]
Comment = Database PC installations Comment = Database PC installations
Data dir = /usr/local/elog/pc
Attributes = Location, OS, Owner Attributes = Location, OS, Owner
Options Location = Building1, Building2 Options Location = Building1, Building2
Options OS = Linux, Windows ME, Windows 2000 Options OS = Linux, Windows ME, Windows 2000
@ -91,6 +89,20 @@ Specifies the TCP port under which the server is listening. Default is 80. Can b
via the '-p' command line flag. via the '-p' command line flag.
<p> <p>
<LI><b><code>Resource dir = &lt;directory&gt;</code></b>
<br>
Specifies the root directory for ELOG resources like help files, themes, icons and user HTML
files. Can be overwritten with the <b><code>-s</code></b> flag when starting elogd. If not
specified, use the directory where the configuration file <b><code>elogd.cfg</code></b> resides.
<p>
<LI><b><code>Logbook dir = &lt;directory&gt;</code></b>
<br>
Specifies the root directory for logbooks. Can be overwritten with the <b><code>-d</code></b> flag when
starting elogd. If not specified, use the directory where the configuration file <b><code>elogd.cfg
</code></b> resides. Each logbook data is stored in a separate directory under this root directory
specified by the <b><code>Subdir</b></code> option. <p>
<LI><b><code>Language = &lt;name&gt;</code></b> <LI><b><code>Language = &lt;name&gt;</code></b>
<br> <br>
@ -134,7 +146,7 @@ contents of the tab.
<br> <br>
This optional HTML code gets displayed in the title of the logbook selection This optional HTML code gets displayed in the title of the logbook selection
page. It can contain images via <b><code>&lt;img src="welcome.gif"&gt;</code></b>. page. It can contain images via <b><code>&lt;img src="welcome.gif"&gt;</code></b>.
These images must be in the same directory as the <b><code>elodg.cfg</b></code> file. These images must be stored in the resource directory.
Alternatively, an absolute path can be used if the file name starts with a Alternatively, an absolute path can be used if the file name starts with a
<b><code>"/"</code></b> (Unix) or <b><code>"\"</code></b> or <b><code>"x:"</code></b> <b><code>"/"</code></b> (Unix) or <b><code>"\"</code></b> or <b><code>"x:"</code></b>
(Windows).<br><br> (Windows).<br><br>
@ -155,8 +167,8 @@ used by most browsers for bookmark names.
<LI><b><code>Selection page = &lt;file&gt;</code></b> <LI><b><code>Selection page = &lt;file&gt;</code></b>
<br> <br>
When this option is present, a user defined file is displayed instead of the logbook When this option is present, a user defined file is displayed instead of the logbook
selection page. This file must be in the same directory as the <code><b>elogd.cfg</b></code> selection page. This file must be stored in the resource directory. Alternatively, an
file. Alternatively, an absolute path can be used if the file name starts with a absolute path can be used if the file name starts with a
<b><code>"/"</code></b> (Unix) or <b><code>"\"</code></b> or <b><code>"x:"</code></b> <b><code>"/"</code></b> (Unix) or <b><code>"\"</code></b> or <b><code>"x:"</code></b>
(Windows).<br><br> (Windows).<br><br>
@ -245,9 +257,19 @@ Here are the available options, by broad categories:<p>
<LI><b><code>Data dir = &lt;directory&gt;</code></b> <LI><b><code>Data dir = &lt;directory&gt;</code></b>
<br> <br>
This option is obsolete from version 2.2.5 on and should not be used. Use <b><code>Subdir = ...</b></code>
instead.<p>
<LI><b><code>Subdir = &lt;directory&gt;</code></b>
<br>
Each logbook has a separate directory where the logbook entries are stored, which Each logbook has a separate directory where the logbook entries are stored, which
is controlled by this statement. If the directory does not exist, it is created is controlled by this statement. If the directory does not exist, it is created
autmatically by the <code><b>elogd</b></code> program. autmatically by the <code><b>elogd</b></code> program. The subdirectory is relative
to the logbook root directory specified with the <b><code>Logbook dir = ...</code></b>
option. So if <b><code>Logbook dir = /usr/local/elog/logbooks</b></code> and
<b><code>Subdir = Demo</b></code> then the logbook data is stored in <b><code>
/user/local/elog/logbooks/Demo</b></code>. If the subdirectory starts with a "/"
("\" under Windows), then it is used as an absolute path independent of the logbook dir.
<p> <p>
<LI><b><code>Number Attachments = &lt;number&gt;</code></b> <LI><b><code>Number Attachments = &lt;number&gt;</code></b>
@ -268,9 +290,9 @@ explicitly specified in the URL.
<br> <br>
A theme determines which layout and colors are used for a logbook, similar to A theme determines which layout and colors are used for a logbook, similar to
<i>skins</i> in other programs. The <i>theme</i> option points to a subdirectory <i>skins</i> in other programs. The <i>theme</i> option points to a subdirectory
under the directory of the configuration file, which contains all files for under the <i>"themes"</i> directory which resides in the resource directory.
that theme. The format of these files is described under the <i>Themes</i> It contains all files for that theme. The format of these files is described under
section. the <i>Themes</i> section.
<p> <p>
<LI><b><code>Date format = &lt;string&gt;</code></b> <LI><b><code>Date format = &lt;string&gt;</code></b>
@ -297,7 +319,7 @@ messages of for logbook queries. Here is a simple example of such a file:
&lt;/ul&gt; &lt;/ul&gt;
</pre> </pre>
The file must be present in the same directory as the <code><b>elogd</b></code> file. The file must be present in the resource directory.
Alternatively, an absolute path can be used if the file name starts with a Alternatively, an absolute path can be used if the file name starts with a
<b><code>"/"</code></b> (Unix) or <b><code>"\"</code></b> or <b><code>"x:"</code></b> <b><code>"/"</code></b> (Unix) or <b><code>"\"</code></b> or <b><code>"x:"</code></b>
(Windows). (Windows).
@ -328,7 +350,7 @@ Here is an example:
&lt;a href="?cmd=New"&gt;Enter&lt;/a&gt; another message &lt;a href="?cmd=New"&gt;Enter&lt;/a&gt; another message
</pre> </pre>
The file must be present in the same directory as the <code><b>elogd</b></code> file. The file must be present in the resource directory.
Alternatively, an absolute path can be used if the file name starts with a Alternatively, an absolute path can be used if the file name starts with a
<b><code>"/"</code></b> (Unix) or <b><code>"\"</code></b> or <b><code>"x:"</code></b> <b><code>"/"</code></b> (Unix) or <b><code>"\"</code></b> or <b><code>"x:"</code></b>
(Windows). (Windows).
@ -451,20 +473,22 @@ example a link back to the main logbook selection page like:
&lt;center&gt;&lt;a href="/"&gt;Main page&lt;/a&gt;&lt;/center&gt; &lt;center&gt;&lt;a href="/"&gt;Main page&lt;/a&gt;&lt;/center&gt;
</pre> </pre>
Or it can contain other useful links. The file must be present in the same directory as the Or it can contain other useful links. The file must be present in the resource directory.
<code><b>elogd.cfg</b></code> file. Alternatively, an absolute path can be used if the file Alternatively, an absolute path can be used if the file
name starts with a <b><code>"/"</code></b> (Unix) or <b><code>"\"</code></b> or <b><code> name starts with a <b><code>"/"</code></b> (Unix) or <b><code>"\"</code></b> or <b><code>
"x:"</code></b> (Windows). "x:"</code></b> (Windows).
<p> <p>
<li><b><code>Help URL = &lt;URL&gt;</code></b> <li><b><code>Help URL = &lt;URL&gt;</code></b>
<br> <br>
This URL is used for the Help button. By default, the file <b>eloghelp_xx.html</b> is This URL is used for the Help button. By default, the file <b>eloghelp_xx.html</b> is returned with
returned with the contents of the help page. Edit this file directly to add site-specific help for all logbooks. Alternatively, use the <b><code>Help URL</code></b> option to specify different help pages for different logbooks. the contents of the help page. Edit this file directly to add site-specific help for all logbooks.
It can point to a site-specific help page via <b><code>http://...</code></b> or to a local file like Alternatively, use the <b><code>Help URL</code></b> option to specify different help pages for different
<b><code>file://c:/tmp/config.html</code></b>, or to the name of an HTML file which must be present in the same directory as the <code><b>elogd</b></code> file. logbooks. It can point to a site-specific help page via <b><code>http://...</code></b> or to a local
<p> file like <b><code>file://c:/tmp/config.html</code></b>, or to the name of an HTML file which must be
present in the resource directory. <p>
<li><b><code>Message Width = &lt;number&gt;</code></b> <li><b><code>Message Width = &lt;number&gt;</code></b>
<br> <br>
@ -573,7 +597,7 @@ down box by default.
<LI><b><code>Preset text = &lt;string&gt; or &lt;file&gt;</code></b> <LI><b><code>Preset text = &lt;string&gt; or &lt;file&gt;</code></b>
<br> <br>
This preset value is used for the main body text. It can be a string or a file, This preset value is used for the main body text. It can be a string or a file,
which must be present in the same directory as the <code><b>elogd.cfg</b></code> file. which must be present in the resource directory.
Alternatively, an absolute path can be used if the file name starts with a Alternatively, an absolute path can be used if the file name starts with a
<b><code>"/"</code></b> (Unix) or <b><code>"\"</code></b> or <b><code>"x:"</code></b> <b><code>"/"</code></b> (Unix) or <b><code>"\"</code></b> or <b><code>"x:"</code></b>
(Windows). (Windows).