
      <<Running DNS Balance under daemontools>>

 DNS Balance can running stand alone, but you can use DNS Balance with
"daemontools" (http://cr.yp.to/daemontools.html).


[How to do that]

1. Install daemontools.
2. Specify where to install DNS Balance. For example, "/foo/bar/dnsbalance/root/".
   Copy all scripts to "/foo/bar/dnsbalance/root/".
3. Create "run" script and place to "/foo/bar/dnsbalance/".

-<example>--------------------
#!/bin/sh
exec 2>&1
cd /foo/bar/dnsbalance/root/ ; exec softlimit -d 8000000 /usr/local/bin/ruby ./dns_balance.rb -l -i 192.168.0.1
------------------------------

4. If you want log file, create "/foo/bar/dnsbalance/log/" and setup "multilog".
   See "daemontools" document.
   And set sticky bit to "/foo/bar/dnsbalance/".

5. Run "svscan" and create symbolic link to service directry.
   For example, "cd /service/ ; ln -s /foo/bar/dnsbalance ."


                  2000/12/20: YOKOTA Hiroshi (yokota@netlab.is.tsukuba.ac.jp)
