X-Recipient: archive-cygwin@delorie.com
X-Spam-Check-By: sourceware.org
Date: Mon, 12 Nov 2007 21:16:12 +0100
From: Corinna Vinschen <corinna-cygwin@cygwin.com>
To: cygwin@cygwin.com
Subject: Re: syslog-ng-config errors
Message-ID: <20071112201612.GA30049@calimero.vinschen.de>
Reply-To: cygwin@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
References: <loom.20071112T180607-408@post.gmane.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <loom.20071112T180607-408@post.gmane.org>
User-Agent: Mutt/1.5.16 (2007-06-09)
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

On Nov 12 18:22, Tony Benham wrote:
> I've decided to run syslog-ng on my cygwin installation. I updated to latest
> version 2.0.5.1. When I run syslog-ng-config I get four errors 
> setfacl : illegal acl entries
> 
> Is this to be expected ?

All four setfacl calls try to add the SYSTEM user to file/directory ACLs.
If that doesn't work, the SYSTEM user doesn't exist in your /etc/passwd
file, apparently.  If so, your /etc/passwd is broken.  You should fix it
by rerunning mkpasswd.

> I then modified syslog-ng.conf to change root group to Administrators as I don't
> have a root group in /etc/groups.

This means your installation isn't ok.  The root group is added to
/etc/mkgroup by one of the generic postinstall scripts after running
setup.exe.  The base-passwd package, which is part of the Base category
does that for you.

> When I start syslog-ng daemon via cp/services, it starts then immediately stops. 
> The logfile states
> 
> Error binding socket; addr='AF_UNIX(/dev/log)', error='Bad file descriptor (9)'
> Error initializing source driver; source='applications'
> 
> Is there anything I can do to fix this ?

Fix what I have written above and then rerun the syslog-ng-config
script.  Afterwards, make sure the /dev directory exists and is set to
rwx for SYSTEM (getfacl /dev should show and entry "group:SYSTEM:rwx" or
"user:SYSTEM:rwx").  Also make sure that a /dev/log file doesn't exist
before starting syslog-ng.


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          cygwin AT cygwin DOT com
Red Hat

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

