From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.sysutils.supervision.general/1257 Path: news.gmane.org!not-for-mail From: Roy Lanek Newsgroups: gmane.comp.sysutils.supervision.general Subject: Re: Installing dnscache with runit, without other djb utils Date: Thu, 28 Sep 2006 07:12:13 +0700 Message-ID: <20060928001213.GA13416@cengkeh.novenine.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1159402637 12850 80.91.229.2 (28 Sep 2006 00:17:17 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 28 Sep 2006 00:17:17 +0000 (UTC) Original-X-From: supervision-return-1493-gcsg-supervision=m.gmane.org@list.skarnet.org Thu Sep 28 02:17:08 2006 Return-path: Envelope-to: gcsg-supervision@gmane.org Original-Received: from antah.skarnet.org ([212.85.147.14]) by ciao.gmane.org with smtp (Exim 4.43) id 1GSjaN-0002sW-Eb for gcsg-supervision@gmane.org; Thu, 28 Sep 2006 02:17:07 +0200 Original-Received: (qmail 26147 invoked by uid 76); 28 Sep 2006 00:17:28 -0000 Mailing-List: contact supervision-help@list.skarnet.org; run by ezmlm List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Archive: Original-Received: (qmail 26141 invoked from network); 28 Sep 2006 00:17:27 -0000 X-Qmail-Scanner-Mail-From: lanek@novenine.com via mail.httpdnet.com X-Qmail-Scanner: 1.25 (Clear:RC:1(61.94.234.153):. Processed in 0.8907 secs) Original-To: supervision@list.skarnet.org Content-Disposition: inline Xref: news.gmane.org gmane.comp.sysutils.supervision.general:1257 Archived-At: ** Sorry for answering late > I'd like to install djb's dnscache to run under my > existing runit-based system. ** you can (it's working perfectly for me). > In order to do so, it seems to require me to install > a number of other djb utilities which have the same > name as some of the runit-based symlinks: setuidgid, > pgrphack, etc. ** no. My case: /etc/dnscache with the usual inner structure (log, supervise, run) + /etc/dnscache/env /etc/dnscache/root /etc/dnscache/seed extra env, root, seed like with the original dnscache log and supervise like usual drwxr-sr-x 2 root root 8 Jun 19 02:34 env drwxr-x--- 3 root xxx 5 Jun 19 02:27 log drwxr-sr-x 4 root root 4 Jun 19 02:21 root -rwx------ 1 root root 395 Jun 19 14:51 run -rw------- 1 root root 128 Sep 28 02:39 seed drwx------ 2 root root 8 Sep 28 02:39 supervise xxx is your groupid of choice from the runit family run is: #!/bin/sh exec 2>&1 cd '/etc/dnscache' || exit 1 # -- seed: umask 077 /bin/rm -f seed /bin/dd if=/dev/urandom bs=128 count=1 > seed 2> /dev/null # -- "Linux has a good source of random data, use 128 # -- bytes of it to pass it to 'dns_random_init' (via # -- 'seed')."^1 exec chpst -U yyy -e ./env -o 250 -d "$DATALIMIT" \ /usr/bin/dnscache # -- 1. The dnscache-conf program, djbdns' doc. with yyy = your userid for dnscache (from the passwd) run in supervise is: #!/bin/sh exec chpst -uxxx svlogd -tt main/dnscache with xxx the same as above and main as known. symbolic link to /etc/dnscache as usual Hope I have given you enough info. The only exception I know in which I had to really compile daemontools--just to extract tai64n and tai64nlocal--is uschedule, which I also use with great satisfaction under runit. (You need also to set a bit up an environment, a trivial task). Cheers, /Roy P.S. After a second thought, maybe it interests others too (I have answered to the sender directly already). -- ######################## anjing menggonggong, kafilah tetap berlalu ##### . slackware ###### the dogs are barking, the caravan moves on ##### +-----linux ###### [illustrates useless protest, critic, or sarcasm] ########################