public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* [ ATTN: xinetd mantainer ] Default xinetd init conf correction
@ 2010-04-05 20:11 d.sastre.medina
  2010-04-06  2:41 ` Charles Wilson
  2010-11-12 18:25 ` Keshav
  0 siblings, 2 replies; 7+ messages in thread
From: d.sastre.medina @ 2010-04-05 20:11 UTC (permalink / raw)
  To: cygwin

[-- Attachment #1: Type: text/plain, Size: 1256 bytes --]

Hello,

This is just a remainder, I sent this before to the list, but might
have gone unnoticed.
Please consider correcting the default xinetd config file. 
I checked a src version from
http://ftp-stud.hs-esslingen.de/pub/Mirrors/sources.redhat.com/cygwin/release/xinetd/xinetd-2.3.14-1-src.tar.bz2
today, and it includes a wrong path to source the functions in 
/etc/rc.d/init.d that affects managing the program through calls like
start/stop/reload/status/... e.g:

dawud@win7 ~
$ /etc/rc.d/init.d/xinetd status
/etc/rc.d/init.d/xinetd: line 22: /etc/init.d/functions: No such
file or directory
/etc/rc.d/init.d/xinetd: line 136: status: command not found

This simple patch solves it:

$ diff -u xinetd-2.3.14/contrib/xinetd.orig
xinetd-2.3.14/contrib/xinetd
--- xinetd-2.3.14/contrib/xinetd.orig   2010-04-05 21:33:00.000000000
+0200
+++ xinetd-2.3.14/contrib/xinetd        2010-04-05 21:33:17.000000000
+0200
@@ -18,7 +18,7 @@
 PATH=/sbin:/bin:/usr/bin:/usr/sbin

 # Source function library.
-. /etc/init.d/functions
+. /etc/rc.d/init.d/functions

 # Get config.
 test -f /etc/sysconfig/network && . /etc/sysconfig/network

Best regards.

-- 
Huella de clave = 943C D77F 0CB0 02FE 166E  E06F D13A A2E1 98A5 C953

[-- Attachment #2: Type: application/pgp-signature, Size: 197 bytes --]

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

* Re: [ ATTN: xinetd mantainer ] Default xinetd init conf correction
  2010-04-05 20:11 [ ATTN: xinetd mantainer ] Default xinetd init conf correction d.sastre.medina
@ 2010-04-06  2:41 ` Charles Wilson
  2010-11-12 18:25 ` Keshav
  1 sibling, 0 replies; 7+ messages in thread
From: Charles Wilson @ 2010-04-06  2:41 UTC (permalink / raw)
  To: Cygwin Mailing List

On 4/5/2010 4:10 PM, d.sastre.medina@gmail.com wrote:
> This is just a remainder, I sent this before to the list, but might
> have gone unnoticed.
> Please consider correcting the default xinetd config file. 

Thanks for the reminder. The problem was, I had a symlink /etc/init.d ->
/etc/rc.d/init.d in my installation (similar to many linuxes) so I
didn't notice the problem.

It'll be fixed in the next release, but that might be a couple of weeks.

--
Chuck

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

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

* Re: [ ATTN: xinetd mantainer ] Default xinetd init conf correction
  2010-04-05 20:11 [ ATTN: xinetd mantainer ] Default xinetd init conf correction d.sastre.medina
  2010-04-06  2:41 ` Charles Wilson
@ 2010-11-12 18:25 ` Keshav
  2010-11-12 18:46   ` Marco Atzeri
  2010-11-13  4:50   ` Charles Wilson
  1 sibling, 2 replies; 7+ messages in thread
From: Keshav @ 2010-11-12 18:25 UTC (permalink / raw)
  To: cygwin




Hi 

I could not find the file xinetd-2.3.14/contrib/xinetd.orig  in the archive 
whose link is mentioned above.

Thanks & regards



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

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

* Re: [ ATTN: xinetd mantainer ] Default xinetd init conf correction
  2010-11-12 18:25 ` Keshav
@ 2010-11-12 18:46   ` Marco Atzeri
  2010-11-13  4:50   ` Charles Wilson
  1 sibling, 0 replies; 7+ messages in thread
From: Marco Atzeri @ 2010-11-12 18:46 UTC (permalink / raw)
  To: cygwin, Keshav

--- Ven 12/11/10, Keshav  ha scritto:

> 
> Hi 
> 
> I could not find the file
> xinetd-2.3.14/contrib/xinetd.orig  in the archive 
> whose link is mentioned above.
> 
> Thanks & regards
> 
> 

and what should be this file ?

the same of etc/defaults/etc/sysconfig/xinetd ?





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

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

* Re: [ ATTN: xinetd mantainer ] Default xinetd init conf correction
  2010-11-12 18:25 ` Keshav
  2010-11-12 18:46   ` Marco Atzeri
@ 2010-11-13  4:50   ` Charles Wilson
  2010-11-27 10:49     ` Keshav prasad
  1 sibling, 1 reply; 7+ messages in thread
From: Charles Wilson @ 2010-11-13  4:50 UTC (permalink / raw)
  To: cygwin

On 11/12/2010 1:05 PM, Keshav wrote:
> I could not find the file xinetd-2.3.14/contrib/xinetd.orig  in the archive 
> whose link is mentioned above.

That's because the patch is malformed and doesn't apply directly (but
it's perfectly understandable to us humans).

Obviously it has been a number of months rather than just a few weeks,
but I haven't had a good reason (e.g. more than fixing this minor issue)
to update xinetd since then.  I hope to get to it soon.

For now, just edit /etc/rc.d/init.d/xinetd manually.

--
Chuck

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

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

* Re: [ ATTN: xinetd mantainer ] Default xinetd init conf correction
  2010-11-13  4:50   ` Charles Wilson
@ 2010-11-27 10:49     ` Keshav prasad
  2010-11-27 10:55       ` Charles Wilson
  0 siblings, 1 reply; 7+ messages in thread
From: Keshav prasad @ 2010-11-27 10:49 UTC (permalink / raw)
  To: cygwin

> For now, just edit /etc/rc.d/init.d/xinetd manually.
> 

can you tell me which line to edit and to what.

Because as per my umderstanding I need to change 

. /etc/init.d/functions  to    . /etc/rc.d/init.d/functions

But the no function file is present at that location either.




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

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

* Re: [ ATTN: xinetd mantainer ] Default xinetd init conf correction
  2010-11-27 10:49     ` Keshav prasad
@ 2010-11-27 10:55       ` Charles Wilson
  0 siblings, 0 replies; 7+ messages in thread
From: Charles Wilson @ 2010-11-27 10:55 UTC (permalink / raw)
  To: cygwin

On 11/26/2010 12:33 PM, Keshav prasad wrote:
>> For now, just edit /etc/rc.d/init.d/xinetd manually.
>>
> 
> can you tell me which line to edit and to what.
> 
> Because as per my umderstanding I need to change 
> 
> . /etc/init.d/functions  to    . /etc/rc.d/init.d/functions
> 
> But the no function file is present at that location either.

to use the sysvinit-style startup scripts (like
/etc/rc.d/init.d/xinetd), you need to install the 'initscripts;
pacakage.  You may ALSO need to install the sysvinit package, and
install the 'init' service it provides by running the init-config script
as Adminstrator.

These packages are not explicitly listed as requirements and installed
automatically, because they really aren't necessary for the Cygwin
xinetd.  You can install, control, and use xinetd all by itself, without
ever using the /etc/rc.d/init.d/xinetd script, simply by installing
xinetd itself as a standalone service (rather than relying on init to do
it for you).  Then, you use
  cygrunsrv -S xinetd
to start it, and
  cygrunsrv -E xinetd
to stop it.

--
Chuck

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

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

end of thread, other threads:[~2010-11-27  3:42 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-04-05 20:11 [ ATTN: xinetd mantainer ] Default xinetd init conf correction d.sastre.medina
2010-04-06  2:41 ` Charles Wilson
2010-11-12 18:25 ` Keshav
2010-11-12 18:46   ` Marco Atzeri
2010-11-13  4:50   ` Charles Wilson
2010-11-27 10:49     ` Keshav prasad
2010-11-27 10:55       ` Charles Wilson

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 read-only IMAP folder(s) and NNTP newsgroup(s).