aboutsummaryrefslogtreecommitdiff
path: root/doc/wydawca.texi
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org>2019-07-22 15:52:11 +0300
committerSergey Poznyakoff <gray@gnu.org>2019-07-22 15:53:41 +0300
commitf8c247bb21e2e93b95f778bf43a7de02a7d1b000 (patch)
treeb8a438b550f3db7998fb8c3d46b566d2e8b228bb /doc/wydawca.texi
parentb369ed6ad26c07d3aec65a1bf0910c0d828c400f (diff)
downloadwydawca-f8c247bb21e2e93b95f778bf43a7de02a7d1b000.tar.gz
wydawca-f8c247bb21e2e93b95f778bf43a7de02a7d1b000.tar.bz2
Document directory setup statements.
See commits f338532e, dd9d9c12, and af538cc2.
Diffstat (limited to 'doc/wydawca.texi')
-rw-r--r--doc/wydawca.texi191
1 files changed, 187 insertions, 4 deletions
diff --git a/doc/wydawca.texi b/doc/wydawca.texi
index 1f76e71..6f769d1 100644
--- a/doc/wydawca.texi
+++ b/doc/wydawca.texi
@@ -103,6 +103,7 @@ How to Configure @command{wydawca}.
103* syslog:: 103* syslog::
104* sql:: 104* sql::
105* dictionaries:: 105* dictionaries::
106* directory setup::
106* archivation:: 107* archivation::
107* spool:: 108* spool::
108* verification:: 109* verification::
@@ -127,12 +128,20 @@ SQL Dictionary
127* project-owner-sql:: 128* project-owner-sql::
128* project-uploader-sql:: 129* project-uploader-sql::
129 130
130Mail Notification 131Notification Mechanism
132
133* modules::
134* event notification::
135* mod_mailutils:: Mail Notification
136* mod_logstat:: Notification to syslog
137
138@command{mod_mailutils}-- Mail Notification
131 139
132* mailer:: 140* mailer::
133* templates:: 141* templates::
134* statreports:: 142* statreports::
135* event notification:: 143* mail-config:: @code{module-config} for @command{mod_mailutils}
144* mod_mailutils example:: Example of @command{mod_mailutils} configuration
136 145
137@end detailmenu 146@end detailmenu
138@end menu 147@end menu
@@ -523,6 +532,7 @@ directives any time by running @command{wydawca --config-help}.
523* syslog:: 532* syslog::
524* sql:: 533* sql::
525* dictionaries:: 534* dictionaries::
535* directory setup::
526* archivation:: 536* archivation::
527* spool:: 537* spool::
528* verification:: 538* verification::
@@ -1716,6 +1726,54 @@ dictionary project-owner @{
1716As of version @value{VERSION} this dictionary is not yet 1726As of version @value{VERSION} this dictionary is not yet
1717implemented. 1727implemented.
1718 1728
1729@node directory setup
1730@section Directory Setup
1731
1732@command{Wydawca} operates on three kinds of directories: spool source
1733directories (@pxref{spool, source}), destination directories
1734(@pxref{spool, destination}) and archive directories
1735(@pxref{archivation}). By default, @command{wydawca} assumes that all
1736directories specified in its configuration file already exist and have
1737proper ownership and modes. It will abort if it is not so.
1738
1739You can configure @command{wydawca} to create these directories as
1740needed, and to set up their ownership and modes automatically.
1741
1742@deffn {Config} create-directories bool
1743If set to @samp{yes}, this statement instructs @command{wydawca} to
1744create any missing directories.
1745@end deffn
1746
1747@deffn {Config} directory-mode mode
1748Specifies the mode for created directories (in octal). If the
1749directory already exists, its mode will be checked and if necessary
1750changed to @var{mode}.
1751
1752This statement is overridden by per-directory statements:
1753@code{source-mode} and @code{destination-mode} statements in
1754@code{spool} block (@pxref{spool}) and @code{directory-mode} statement
1755in @code{archive} block (@pxref{archivation}).
1756@end deffn
1757
1758@deffn {Config} directory-owner uid gid
1759Configures owner user and group IDs for source, destination and
1760archive directories.
1761
1762The @var{uid} argument is either a numeric UID prefixed with a plus
1763sign, or a symbolic user name, which will be converted to the numeric
1764UID using the system user database. If a number without the @samp{+}
1765prefix is supplied, it will first be looked in the password database
1766as the user name, and, if no such user is found, it will be used as
1767the numeric UID.
1768
1769The same holds for the @var{gid} argument.
1770
1771This statement is overridden by per-directory statements:
1772@code{source-owner} and @code{destination-owner} statements in
1773@code{spool} block (@pxref{spool}) and @code{directory-owner} statement
1774in @code{archive} block (@pxref{archivation}).
1775@end deffn
1776
1719@node archivation 1777@node archivation
1720@section Archivation 1778@section Archivation
1721@cindex archivation, defined 1779@cindex archivation, defined
@@ -1739,8 +1797,17 @@ where it affects only the given spool.
1739@deffn {Config} archive type 1797@deffn {Config} archive type
1740@smallexample 1798@smallexample
1741archive @var{type} @{ 1799archive @var{type} @{
1800 # Name of archive file or directory
1742 name @var{file-or-dir}; 1801 name @var{file-or-dir};
1802
1803 # Define backup type
1743 backup @var{type}; 1804 backup @var{type};
1805
1806 # mode for the archive directory
1807 directory-mode @var{mode};
1808
1809 # owner user and group for the archive directory
1810 directory-owner @var{uid} @var{gid};
1744@} 1811@}
1745@end smallexample 1812@end smallexample
1746 1813
@@ -1858,6 +1925,27 @@ Always make simple backups.
1858 If no backup method is given, @samp{existing} is assumed 1925 If no backup method is given, @samp{existing} is assumed
1859@end deffn 1926@end deffn
1860 1927
1928@deffn {Config: archive} directory-mode mode
1929Sets directory mode for creating the directory (octal). If the
1930directory already exists, its mode will be checked and if necessary
1931changed to @var{mode}.
1932
1933This statement overrides the global @code{directory-mode} statement
1934(@pxref{directory setup}).
1935@end deffn
1936
1937@deffn {Config} directory-owner uid gid
1938Configures owner user and group IDs for created archive directories.
1939If the archive directory already exists, its ownership will be checked
1940and if necessary reverted to @var{uid}:@var{gid}.
1941
1942@xref{directory setup, directory-owner}, for a discussion of the
1943syntax for @var{uid} and @var{gid}.
1944
1945This statement overrides the global @code{directory-mode} statement
1946(@pxref{directory setup}).
1947@end deffn
1948
1861@cindex implicit signature archivation 1949@cindex implicit signature archivation
1862@cindex signature files, archivation 1950@cindex signature files, archivation
1863 Signature files (i.e. the ones ending with @samp{.sig}) are usually 1951 Signature files (i.e. the ones ending with @samp{.sig}) are usually
@@ -1899,7 +1987,11 @@ spool @var{tag} @{
1899 alias (@var{aliases}); 1987 alias (@var{aliases});
1900 inotify @var{bool}; 1988 inotify @var{bool};
1901 source @var{dir}; 1989 source @var{dir};
1990 source-mode @var{mode};
1991 source-owner @var{uid} @var{gid};
1902 destination @var{dir}; 1992 destination @var{dir};
1993 destination-mode @var{mode};
1994 destination-owner @var{uid} @var{gid};
1903 file-sweep-time @var{interval}; 1995 file-sweep-time @var{interval};
1904 dictionary @{ @dots{} @} 1996 dictionary @{ @dots{} @}
1905 archive @{ @dots{} @} 1997 archive @{ @dots{} @}
@@ -1933,6 +2025,27 @@ may be used as @samp{$@{url@}} meta-variable in mail notifications.
1933Specifies the location of the source directory. 2025Specifies the location of the source directory.
1934@end deffn 2026@end deffn
1935 2027
2028@deffn {Config: archive} source-mode mode
2029Sets directory mode for creating the source directory (octal). If the
2030directory already exists, its mode will be checked and if necessary
2031changed to @var{mode}.
2032
2033This statement overrides the global @code{directory-mode} statement
2034(@pxref{directory setup}).
2035@end deffn
2036
2037@deffn {Config} source-owner uid gid
2038Configures owner user and group IDs for the source directory.
2039If the directory already exists, its ownership will be checked
2040and if necessary reverted to @var{uid}:@var{gid}.
2041
2042@xref{directory setup, directory-owner}, for a discussion of the
2043syntax for @var{uid} and @var{gid}.
2044
2045This statement overrides the global @code{directory-mode} statement
2046(@pxref{directory setup}).
2047@end deffn
2048
1936@deffn {Config: spool} destination dir 2049@deffn {Config: spool} destination dir
1937Specifies the type and location of the destination directory. The 2050Specifies the type and location of the destination directory. The
1938@var{dir} argument must be either an absolute name of a directory on 2051@var{dir} argument must be either an absolute name of a directory on
@@ -1954,6 +2067,30 @@ are useful mainly for diagnostic purposes.
1954@end table 2067@end table
1955@end deffn 2068@end deffn
1956 2069
2070The following two statements apply only if the destination is a local
2071directory (@samp{file://} or @samp{dir://} URL scheme):
2072
2073@deffn {Config: archive} destination-mode mode
2074Sets directory mode for creating the destination directory (octal).
2075If the directory already exists, its mode will be checked and if
2076necessary changed to @var{mode}.
2077
2078This statement overrides the global @code{directory-mode} statement
2079(@pxref{directory setup}).
2080@end deffn
2081
2082@deffn {Config} destination-owner uid gid
2083Configures owner user and group IDs for the destination directory.
2084If the directory already exists, its ownership will be checked
2085and if necessary reverted to @var{uid}:@var{gid}.
2086
2087@xref{directory setup, directory-owner}, for a discussion of the
2088syntax for @var{uid} and @var{gid}.
2089
2090This statement overrides the global @code{directory-mode} statement
2091(@pxref{directory setup}).
2092@end deffn
2093
1957The following statements, if present, override the corresponding global