[Debian-ha-maintainers] Bug#492635: csync2: xinetd info: Line 1: protocol missing

Alexander Sosna alexander.sosna at credativ.de
Wed May 6 13:44:44 UTC 2015


On Sun, 27 Jul 2008 22:29:50 +0200 Michael Prokop <mika at grml.org> wrote:
> When upgrading csync2 I noticed:
> 
> --------- IMPORTANT INFORMATION FOR XINETD USERS ----------
> The following line will be added to your /etc/inetd.conf file:
> 
> csync2\t\tstream\ttcp\tnowait\troot\t/usr/sbin/csync2\tcsync2 -i
> 
> If you are indeed using xinetd, you will have to convert the
> above into /etc/xinetd.conf format, and add it manually. See
> /usr/share/doc/xinetd/README.Debian for more information.
> Suggested entry (automatically converted using itox):
> 
> Line 1: protocol missing
> -----------------------------------------------------------

I can not (competently) reproduce your bug.

If I write tabs as \t and pipe it to itox, I get your error:

% echo "csync2\t\tstream\ttcp\tnowait\troot\t/usr/sbin/csync2\tcsync2
-i" | itox
service csync2\t\tstream\ttcp\tnowait\troot\t
{
	type            = RPC
	rpc_version     = usr/sbin/csync2\tcsync2
	socket_type     = -i
Line 1: protocol missing



But if I cat the generated /etc/inetd.conf or the configuration string,
everything works fine fore me:

% cat /etc/inetd.conf | itox
service csync2
{
	socket_type     = stream
	protocol        = tcp
	wait            = no
	user            = root
	server          = /usr/sbin/csync2
	server_args     = -i
}

% echo "csync2 stream tcp nowait root /usr/sbin/csync2 csync2 -i"  | itox
service csync2
{
	socket_type     = stream
	protocol        = tcp
	wait            = no
	user            = root
	server          = /usr/sbin/csync2
	server_args     = -i
}


Convertig the configuration looks like:
% cat /etc/inetd.conf | itox >  /etc/xinetd.d/csync2


Can we close this bug?





Best regards,
Alexander



More information about the Debian-ha-maintainers mailing list