test
[hcoop/zz_old/ikiwiki] / MemberManual / UsingDomtool.mdwn
diff --git a/MemberManual/UsingDomtool.mdwn b/MemberManual/UsingDomtool.mdwn
new file mode 100755 (executable)
index 0000000..d39f4e2
--- /dev/null
@@ -0,0 +1,48 @@
+#pragma section-numbers off\r
+\r
+This is the chapter of the MemberManual that describes the bare minimum that you need to know concerning our use of DomTool.  This is meant to be a very brief HCoop-specific overview, compared to the DomTool/UserGuide page, which is more thorough.\r
+\r
+[[TableOfContents]]\r
+\r
+= Configuration files =\r
+\r
+Domtool has user-specified configuration files that determine how to set up a domain or subdomain.  Each file contains all of the information needed to configure a single domain.\r
+\r
+If you want Domtool to process these files automatically, then place them in the {{{~/.domtool}}} directory.  If you are just testing out a domain temporarily, the configuration files may be placed anywhere.\r
+\r
+By default, this {{{~/.domtool}}} directory is actually a symlink to the {{{~/.public/.domtool}}} directory.  This makes your configuration files readable by anyone, but writable only by you.  If you want to make them private, then do the following.\r
+\r
+{{{\r
+rm ~/.domtool\r
+mkdir ~/.domtool\r
+fs setacl ~/.domtool domtool read\r
+# Do the following two commands if you have any files in ~/.public/.domtool\r
+mv ~/.public/.domtool/* ~/.domtool\r
+rmdir ~/.public/.domtool\r
+}}}\r
+\r
+= Running domtool =\r
+\r
+In order to activate or test a domain, you must run the {{{domtool}}} command.\r
+\r
+== Testing your configuration ==\r
+\r
+Running the following command tests your configuration file (here called "MYDOMAIN") for errors.  Make sure to give the full path to the configuration file, unless you are currently in the same directory as the configuration file.\r
+\r
+{{{\r
+domtool -tc ~/.domtool/MYDOMAIN\r
+}}}\r
+\r
+The "-tc" argument means "type-check".\r
+\r
+== Activating your configuration ==\r
+\r
+In order to make your changes go live, you need to run domtool without the "-tc" argument, as follows.\r
+\r
+{{{\r
+domtool ~/.domtool/MYDOMAIN\r
+}}}\r
+\r
+= Further instruction =\r
+\r
+The intention of this page was to give you a very quick overview of the {{{domtool}}} command.  To learn about how to create working configuration files, as well as brag to your friends about Domtool's excellent design, it is essential that you read the [:DomTool/UserGuide:Domtool User Guide].\r