--- a/man.rst Mon May 03 20:40:04 2010 +0300
+++ b/man.rst Mon May 03 20:42:32 2010 +0300
@@ -50,3 +50,39 @@
TODO
Bolt by print char, back one char and print same char.
Underscore by printing undescore, back one char and print char.
+
+* Development tools.
+
+To preview local man page:
+
+ $ groff -man -Tascii foo.1 # 7-bit char
+ $ groff -man -Tlatin1 foo.1 # 8-bit char
+ $ groff -man -Tlatin1 foo.1 | less
+ $ groff -a -mandoc -Tlatin1 e.1
+ $ groff -man -Tutf8 foo.1
+
+ $ man ./foo.1 # if slashes in path - use file
+
+ $ mkdir man1
+ $ cp foo.1 man1
+ $ man -M . 1 foo # without slashes search in MANPATH item
+ # and add /man1 to each item
+
+* Output format.
+
+** .txt.
+
+ $ man foo | col -b >.foo.txt
+
+** .ps.
+
+ $ groff -Tps foo >foo.ps
+
+** .ps.
+
+ $ groff -Tps foo >foo.ps
+
+** .dvi.
+
+ $ groff -Tdvi foo >foo.dvi
+
--- a/rc.d.rst Mon May 03 20:40:04 2010 +0300
+++ b/rc.d.rst Mon May 03 20:42:32 2010 +0300
@@ -1,5 +1,27 @@
-*- outline -*-
+* rc.d script.
+
+** SysV type.
+
+ /etc/init.d/*
+ Here scripts.
+ /etc/rc<N>.d/[SK]<NN>name
+ Here symlink to /etc/init.d/ scripts. <N> - runlevel, <NN> -
+ start order from low to high, with K run stop, with S run start.
+
+** Disable service.
+
+To disable the service, rename the symbolic link so that its name begins with
+a K instead of with an S and its sequence number is 100 minus NN.
+
+** Command for scripts.
+
+ start
+ stop
+ restart
+ force-reload
+
* How manage runlevel for startup script.
For debian preferred package is sysvconfig(8).