merged
authorOleksandr Gavenko <gavenkoa@gmail.com>
Mon, 03 May 2010 20:42:32 +0300
changeset 373 c390029b4325
parent 372 1a1b0f19eb51 (current diff)
parent 369 26423d889039 (diff)
child 374 cdc768ae8024
merged
--- 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).