Greetings friends. Perhaps someone here can help me. (BTW -- a CC
would sure be nice, if you reply. :)

I am trying to build a short and sweet http redirector using the
twist function from hosts_options(5). I did this before, with ftp,
and inetd. Trouble is, now I am using a machine with xinetd
(Version 2.1.8.9pre11) and I cannot get the service to be used
twice -- it works once, then xinetd quits!

The xinetd.d directory entry I am using contains:
service httpd-redir
{
        identifier      = httpd-redir
        port            = 6080
        protocol        = tcp
        type            = UNLISTED
        flags           = NAMEINARGS
        socket_type     = stream        
        wait            = no
        user            = root
        server          = /usr/sbin/tcpd 
        server_args     = /usr/sbin/in.httpd-redir
        log_on_failure  += USERID
}

The /etc/hosts.allow file contains:
in.httpd-redir : ALL : twist echo -en 'Hi'

(It used to be much more complex and working, but this is simple
enough that it should not fail.)

When running xinetd with:  xinetd -reuse -pidfile /var/run/xinetd.pid -d
I get error messages thus: 00/12/[EMAIL PROTECTED]:14:47: DEBUG: {main_loop} 
select returned 1

The whole bit says:

[EMAIL PROTECTED] xinetd.d]# xinetd -reuse -pidfile /var/run/xinetd.pid -d
00/12/[EMAIL PROTECTED]:14:44: DEBUG: {handle_includedir} Reading included 
configuration file: /etc/xinetd.d/chargen [line=14]
00/12/[EMAIL PROTECTED]:14:44: DEBUG: {handle_includedir} Reading included 
configuration file: /etc/xinetd.d/chargen-udp [line=14]
00/12/[EMAIL PROTECTED]:14:44: DEBUG: {handle_includedir} Reading included 
configuration file: /etc/xinetd.d/daytime [line=15]
00/12/[EMAIL PROTECTED]:14:44: DEBUG: {handle_includedir} Reading included 
configuration file: /etc/xinetd.d/daytime-udp [line=14]
00/12/[EMAIL PROTECTED]:14:44: DEBUG: {handle_includedir} Reading included 
configuration file: /etc/xinetd.d/echo [line=15]
00/12/[EMAIL PROTECTED]:14:44: DEBUG: {handle_includedir} Reading included 
configuration file: /etc/xinetd.d/echo-udp [line=14]
00/12/[EMAIL PROTECTED]:14:44: DEBUG: {handle_includedir} Reading included 
configuration file: /etc/xinetd.d/httpd-redir [line=15]
00/12/[EMAIL PROTECTED]:14:44: WARNING: {attr_lookup} bad attribute: identifier 
[line=6]
00/12/[EMAIL PROTECTED]:14:44: DEBUG: {handle_includedir} Reading included 
configuration file: /etc/xinetd.d/time [line=18]
00/12/[EMAIL PROTECTED]:14:44: DEBUG: {handle_includedir} Reading included 
configuration file: /etc/xinetd.d/time-udp [line=14]
00/12/[EMAIL PROTECTED]:14:44: DEBUG: {handle_includedir} Reading included 
configuration file: /etc/xinetd.d/wu-ftpd [line=15]
Service defaults
        Instances = 60
        Logging to syslog. Facility = authpriv, level = info
        Log_on_success flags = HOST PID
        Log_on_failure flags = HOST RECORD

Service configuration: ftp
        id = ftp
        socket_type = stream
        Protocol (ny = authpriv, level = info
        Log_on_success flags = HOST PID
        Log_on_failure flags = HOST RECORD USERID

00/12/[EMAIL PROTECTED]:14:44: DEBUG: {cnf_start_services} Started service: ftp
00/12/[EMAIL PROTECTED]:14:44: DEBUG: {cnf_start_services} Started service: 
httpd-redir
00/12/[EMAIL PROTECTED]:14:44: DEBUG: {cnf_start_services} mask_max = 6, 
services_started = 2
00/12/[EMAIL PROTECTED]:14:44: NOTICE: {main} Started working: 2 available 
services
00/12/[EMAIL PROTECTED]:14:44: DEBUG: {main_loop} active_services = 2
00/12/[EMAIL PROTECTED]:14:47: DEBUG: {main_loop} select returned 1


(*sigh* out of time, and paste doesn't work further! blah.)

In any event, if you know what I can do to fix that stupid error, I would *love*
to hear it! ;)

Thanks

Reply via email to