From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.sysutils.supervision.general/820 Path: news.gmane.org!not-for-mail From: "Gregg Howe" Newsgroups: gmane.comp.sysutils.supervision.general Subject: Re: dnscache runs under daemontools, unable to bind (access denied) using runit Date: Fri, 20 May 2005 09:03:31 -0700 Message-ID: <001f01c55d55$786c6460$6601a8c0@GHDESK> References: <41EB9410-E945-46D1-A17D-171BFC4750DF@nednieuws.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1116608032 13786 80.91.229.2 (20 May 2005 16:53:52 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 20 May 2005 16:53:52 +0000 (UTC) Original-X-From: supervision-return-1056-gcsg-supervision=m.gmane.org@list.skarnet.org Fri May 20 18:53:49 2005 Return-path: Original-Received: from antah.skarnet.org ([212.85.147.14]) by ciao.gmane.org with smtp (Exim 4.43) id 1DZAk5-0006gR-La for gcsg-supervision@gmane.org; Fri, 20 May 2005 18:52:57 +0200 Original-Received: (qmail 17610 invoked by uid 76); 20 May 2005 16:54:23 -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 17604 invoked from network); 20 May 2005 16:54:23 -0000 Original-To: X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1437 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441 Xref: news.gmane.org gmane.comp.sysutils.supervision.general:820 X-Report-Spam: http://spam.gmane.org/gmane.comp.sysutils.supervision.general:820 ----- Original Message ----- From: "Charles M. Gerungan" To: Sent: Friday, May 20, 2005 5:04 AM Subject: dnscache runs under daemontools, unable to bind (access denied) using runit > This starts up dnscache and it responds to queries: > > # cat run.daemontools > #!/bin/sh > exec 2>&1 > exec 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 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 > > > Why am I getting the error and how do I solve it? > > -- > Regards, Charles. Charles-- The "-u" option in chpst changes dnscache to an unprivileged user before it executes, so it isn't able to bind the UPD socket. If you use "-U" instead, dnscache will be able to complete this before it changes to Gdnscache. Gregg