delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/08/30/11:56:39

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Message-ID: <001d01c48ea9$e860ed20$3601010a@plas>
From: "Marcin Lewandowski" <lewandom AT op DOT pl>
To: <cygwin AT cygwin DOT com>
References: <001501c48db4$059224f0$3601010a AT plas> <Pine DOT GSO DOT 4 DOT 61 DOT 0408290934290 DOT 14676 AT slinky DOT cs DOT nyu DOT edu> <002801c48dd2$8a76b320$3601010a AT plas> <Pine DOT GSO DOT 4 DOT 61 DOT 0408291227350 DOT 14676 AT slinky DOT cs DOT nyu DOT edu> <004101c48e09$eab88e70$3601010a AT plas> <Pine DOT GSO DOT 4 DOT 61 DOT 0408291707520 DOT 17405 AT slinky DOT cs DOT nyu DOT edu> <000b01c48e7a$732056b0$3601010a AT plas> <Pine DOT GSO DOT 4 DOT 61 DOT 0408301025020 DOT 24572 AT slinky DOT cs DOT nyu DOT edu>
Subject: Re: cygrunsrv xinetd problem
Date: Mon, 30 Aug 2004 17:56:26 +0200
MIME-Version: 1.0
X-IsSubscribed: yes

> > Then, I tried running:
> > $ cygrunsrv -S xinetd
> > but, the same story, error 1062. So, as you suggested, i made:
> > $ chmod a+rx *
> > in directories /bin and /usr/sbin. That didn't help, but now when I look
at
> > /var/log/xinetd.log, I don't see nothing, but a couple of lines:
> >   xinetd: msg_init failed: can't open log file
>
> Aha.
>
> > I can't see a problem with this from this point, here's the listing of
> > /var/log:
> > total 1477
> > drwxrwx---+   4 Administ Users           0 Aug 30 12:02 .
>            ^
> Here's your culprit.  You need a +x permission on the directory to be able
> to see files in that directory.  A "chmod o+x /var/log" should fix this.
> In fact, make sure every directory other than the user home directories is
> executable by others.

Done, and still the same error...

> > > Try opening a SYSTEM-owned shell (see the recent thread,
> > > <http://cygwin.com/ml/cygwin/2004-08/msg01132.html>), and run xinetd
> > > directly from the command line in that shell.  If it runs there,
compare
> > > the environment settings for the service with the environment settings
in
> > > that shell.  If it doesn't run there, the errors you get should be
helpful
> > > in diagnosing the problem and experimenting.
> >
> > Well, looks like xinetd runs well when running as SYSTEM directly, under
> > SYSTEM owned shell. No errors, and I was even able to login using telnet
> > service. So, I guess the problem is not here.
>
> Yes, the log file problem wouldn't show up in the SYSTEM-owned shell,
> unless you also tried to redirect std{out,err} to /var/log/xinetd.log
> (i.e., run "/usr/sbin/xinetd >>/var/log/xinetd.log 2>&1", which is
> essentially what cygrunsrv does).

I tried doing this, and xinetd runs with no problems.

Marcin Lewandowski
http://www.ii.uj.edu.pl/~lewandow



--
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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019