supervision - discussion about system services, daemon supervision, init, runlevel management, and tools such as s6 and runit
 help / color / mirror / Atom feed
* dnscache runs under daemontools, unable to bind (access denied) using runit
@ 2005-05-20 12:04 Charles M. Gerungan
  2005-05-20 12:10 ` Charles M. Gerungan
  2005-05-20 16:03 ` Gregg Howe
  0 siblings, 2 replies; 6+ messages in thread
From: Charles M. Gerungan @ 2005-05-20 12:04 UTC (permalink / 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.



^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2005-05-20 17:31 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-05-20 12:04 dnscache runs under daemontools, unable to bind (access denied) using runit Charles M. Gerungan
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

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).