supervision - discussion about system services, daemon supervision, init, runlevel management, and tools such as s6 and runit
 help / color / mirror / Atom feed
From: "Charles M. Gerungan" <charles@nednieuws.com>
Subject: dnscache runs under daemontools, unable to bind (access denied) using runit
Date: Fri, 20 May 2005 14:04:14 +0200	[thread overview]
Message-ID: <41EB9410-E945-46D1-A17D-171BFC4750DF@nednieuws.com> (raw)

This starts up dnscache and it responds to queries:

# cat run.daemontools
#!/bin/sh
exec 2>&1
exec <seed
exec envdir ./env sh -c '
   exec envuidgid Gdnscache softlimit -o250 -d "$DATALIMIT" /usr/ 
local/bin/dnscache
'

This does not start up (an adapted version of http://www.skarnet.org: 
80/lists/archive.cgi?2:msp:1046:midfmaimamejgmijfagg -- the content  
of the env dir wasn't given so I hope I interpreted the manual  
correctly):

# cat run
#!/bin/sh
exec 2>&1
exec <seed
exec chpst -v -u Gdnscache:Gnofiles -e ./env -o 250 /usr/local/bin/ 
dnscache

The error I'm getting when invoking:

# ./run
dnscache: fatal: unable to bind UDP socket: access denied

Here's the content of the env dir:

# ll env
total 14
drwxr-sr-x    2 root     wheel         512 May 20 00:31 ./
drwxr-sr-t    5 root     wheel         512 May 20 08:57 ../
-rw-r--r--    1 root     wheel           8 May 20 00:31 CACHESIZE
-rw-r--r--    1 root     wheel           8 May 20 00:31 DATALIMIT
-rw-r--r--    1 root     wheel          13 May 20 02:59 IP
-rw-r--r--    1 root     wheel           8 May 20 00:31 IPSEND
-rw-r--r--    1 root     wheel          25 May 20 00:31 ROOT

# cat env/*
1000000
3000000
83.98.165.81
0.0.0.0
/var/svc.d/dnscache/root

Why am I getting the error and how do I solve it?

-- 
Regards, Charles.



             reply	other threads:[~2005-05-20 12:04 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-05-20 12:04 Charles M. Gerungan [this message]
2005-05-20 12:10 ` Charles M. Gerungan
2005-05-20 16:03 ` Gregg Howe
2005-05-20 17:18   ` Charles M. Gerungan
2005-05-20 17:22     ` Charlie Brady
2005-05-20 17:31       ` Charles M. Gerungan

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=41EB9410-E945-46D1-A17D-171BFC4750DF@nednieuws.com \
    --to=charles@nednieuws.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).