Smart server via inetd: bad response ('bzr: ERROR: unknown command "--inet"', )

Matthew D. Fuller fullermd at over-yonder.net
Fri Oct 12 06:32:49 BST 2007


On Fri, Oct 12, 2007 at 01:50:01PM +1000 I heard the voice of
Ben Finney, and lo! it spake thus:
> 
> The inetd is configured with this line:
> 
> =====
> 4155            stream  tcp     nowait  bzr     /usr/bin/bzr    serve --inet --directory=/srv/bzr/
> =====
> 
> What can I do to diagnose and fix the above failure?

Standard inetd config error.  The 6th field is the command to execute
(/usr/bin/bzr, as you have), but the remaining fields are filled in
argv from [0].  You're making argv[0] be 'serve', and argv[1] be
'--inet', when those should be 1 and 2.  You need a 'bzr' in there
before 'serve'.


-- 
Matthew Fuller     (MF4839)   |  fullermd at over-yonder.net
Systems/Network Administrator |  http://www.over-yonder.net/~fullermd/
           On the Internet, nobody can hear you scream.



More information about the bazaar mailing list