# HG changeset patch # User Oleksandr Gavenko # Date 1272908552 -10800 # Node ID c390029b4325dba9ed6a71917a8c2e745c289597 # Parent 1a1b0f19eb51279c7e01a61efdbf9b452f184665# Parent 26423d889039f57acb4d64772a75630d17f9d337 merged diff -r 1a1b0f19eb51 -r c390029b4325 man.rst --- 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 + diff -r 1a1b0f19eb51 -r c390029b4325 rc.d.rst --- 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.d/[SK]name + Here symlink to /etc/init.d/ scripts. - runlevel, - + 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).