diff options
author | Sergey Poznyakoff <gray@gnu.org> | 2019-07-22 15:52:11 +0300 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org> | 2019-07-22 15:53:41 +0300 |
commit | f8c247bb21e2e93b95f778bf43a7de02a7d1b000 (patch) | |
tree | b8a438b550f3db7998fb8c3d46b566d2e8b228bb /doc/wydawca.texi | |
parent | b369ed6ad26c07d3aec65a1bf0910c0d828c400f (diff) | |
download | wydawca-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.texi | 191 |
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 | ||
130 | Mail Notification | 131 | Notification 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 @{ | |||
1716 | As of version @value{VERSION} this dictionary is not yet | 1726 | As of version @value{VERSION} this dictionary is not yet |
1717 | implemented. | 1727 | implemented. |
1718 | 1728 | ||
1729 | @node directory setup | ||
1730 | @section Directory Setup | ||
1731 | |||
1732 | @command{Wydawca} operates on three kinds of directories: spool source | ||
1733 | directories (@pxref{spool, source}), destination directories | ||
1734 | (@pxref{spool, destination}) and archive directories | ||
1735 | (@pxref{archivation}). By default, @command{wydawca} assumes that all | ||
1736 | directories specified in its configuration file already exist and have | ||
1737 | proper ownership and modes. It will abort if it is not so. | ||
1738 | |||
1739 | You can configure @command{wydawca} to create these directories as | ||
1740 | needed, and to set up their ownership and modes automatically. | ||
1741 | |||
1742 | @deffn {Config} create-directories bool | ||
1743 | If set to @samp{yes}, this statement instructs @command{wydawca} to | ||
1744 | create any missing directories. | ||
1745 | @end deffn | ||
1746 | |||
1747 | @deffn {Config} directory-mode mode | ||
1748 | Specifies the mode for created directories (in octal). If the | ||
1749 | directory already exists, its mode will be checked and if necessary | ||
1750 | changed to @var{mode}. | ||
1751 | |||
1752 | This 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 | ||
1755 | in @code{archive} block (@pxref{archivation}). | ||
1756 | @end deffn | ||
1757 | |||
1758 | @deffn {Config} directory-owner uid gid | ||
1759 | Configures owner user and group IDs for source, destination and | ||
1760 | archive directories. | ||
1761 | |||
1762 | The @var{uid} argument is either a numeric UID prefixed with a plus | ||
1763 | sign, or a symbolic user name, which will be converted to the numeric | ||
1764 | UID using the system user database. If a number without the @samp{+} | ||
1765 | prefix is supplied, it will first be looked in the password database | ||
1766 | as the user name, and, if no such user is found, it will be used as | ||
1767 | the numeric UID. | ||
1768 | |||
1769 | The same holds for the @var{gid} argument. | ||
1770 | |||
1771 | This 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 | ||
1774 | in @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 |
1741 | archive @var{type} @{ | 1799 | archive @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 | ||
1929 | Sets directory mode for creating the directory (octal). If the | ||
1930 | directory already exists, its mode will be checked and if necessary | ||
1931 | changed to @var{mode}. | ||
1932 | |||
1933 | This statement overrides the global @code{directory-mode} statement | ||
1934 | (@pxref{directory setup}). | ||
1935 | @end deffn | ||
1936 | |||
1937 | @deffn {Config} directory-owner uid gid | ||
1938 | Configures owner user and group IDs for created archive directories. | ||
1939 | If the archive directory already exists, its ownership will be checked | ||
1940 | and if necessary reverted to @var{uid}:@var{gid}. | ||
1941 | |||
1942 | @xref{directory setup, directory-owner}, for a discussion of the | ||
1943 | syntax for @var{uid} and @var{gid}. | ||
1944 | |||
1945 | This 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. | |||
1933 | Specifies the location of the source directory. | 2025 | Specifies the location of the source directory. |
1934 | @end deffn | 2026 | @end deffn |
1935 | 2027 | ||
2028 | @deffn {Config: archive} source-mode mode | ||
2029 | Sets directory mode for creating the source directory (octal). If the | ||
2030 | directory already exists, its mode will be checked and if necessary | ||
2031 | changed to @var{mode}. | ||
2032 | |||
2033 | This statement overrides the global @code{directory-mode} statement | ||
2034 | (@pxref{directory setup}). | ||
2035 | @end deffn | ||
2036 | |||
2037 | @deffn {Config} source-owner uid gid | ||
2038 | Configures owner user and group IDs for the source directory. | ||
2039 | If the directory already exists, its ownership will be checked | ||
2040 | and if necessary reverted to @var{uid}:@var{gid}. | ||
2041 | |||
2042 | @xref{directory setup, directory-owner}, for a discussion of the | ||
2043 | syntax for @var{uid} and @var{gid}. | ||
2044 | |||
2045 | This 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 |
1937 | Specifies the type and location of the destination directory. The | 2050 | Specifies 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 | ||
2070 | The following two statements apply only if the destination is a local | ||
2071 | directory (@samp{file://} or @samp{dir://} URL scheme): | ||
2072 | |||
2073 | @deffn {Config: archive} destination-mode mode | ||
2074 | Sets directory mode for creating the destination directory (octal). | ||
2075 | If the directory already exists, its mode will be checked and if | ||
2076 | necessary changed to @var{mode}. | ||
2077 | |||
2078 | This statement overrides the global @code{directory-mode} statement | ||
2079 | (@pxref{directory setup}). | ||
2080 | @end deffn | ||
2081 | |||
2082 | @deffn {Config} destination-owner uid gid | ||
2083 | Configures owner user and group IDs for the destination directory. | ||
2084 | If the directory already exists, its ownership will be checked | ||
2085 | and if necessary reverted to @var{uid}:@var{gid}. | ||
2086 | |||
2087 | @xref{directory setup, directory-owner}, for a discussion of the | ||
2088 | syntax for @var{uid} and @var{gid}. | ||
2089 | |||
2090 | This statement overrides the global @code{directory-mode} statement | ||
2091 | (@pxref{directory setup}). | ||
2092 | @end deffn | ||
2093 | |||
1957 | The following statements, if present, override the corresponding global |