Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 54579 - net-mail/hotwayd-0.7.1 xinetd config file is broken
Summary: net-mail/hotwayd-0.7.1 xinetd config file is broken
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-06-20 17:43 UTC by Mark Warren
Modified: 2004-06-20 17:47 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mark Warren 2004-06-20 17:43:53 UTC
The xinetd.d config file for hotwayd 0.7.1 (/etc/xinetd.d/hotwayd) is broken after initial emerge.  Type needs to be set to UNLISTED and server_args need to be commented out (the initial file out of the package has server_args set to -s and there is no -s option to hotwayd).  I'd imagine that you might want the disable option to remain to force users to explicitly enable the service.

Symptoms of 'type' problem:

  # after removing the disabled option...
  null0 root # egrep -v "^#" /etc/xinetd.d/hotwayd 

  service hotwayd
  {
          only_from               = localhost
          socket_type             = stream
          wait                    = no
          user                    = nobody
          port                    = 110
          server                  = /usr/sbin/hotwayd
          server_args             = -s
          log_on_success          += USERID
          log_on_failure          += USERID
  }

  null0 root # grep "hotwayd/tcp" /var/log/messages 
  Jun 20 18:41:13 null0 xinetd[23033]: service/protocol combination not
  in /etc/services: hotwayd/tcp

To fix, add a line that says type = UNLISTED:

  null0 root # egrep -v "^#" /etc/xinetd.d/hotwayd 

  service hotwayd
  {
          type                    = UNLISTED
          only_from               = localhost
          socket_type             = stream
          wait                    = no
          user                    = nobody
          port                    = 110
          server                  = /usr/sbin/hotwayd
          server_args             = -s
          log_on_success          += USERID
          log_on_failure          += USERID
  }

Second problem, server_args:

  # after the above problem has been resolved...
  null0 root # telnet localhost 110
  Trying 127.0.0.1...
  Connected to localhost.
  Escape character is '^]'.
  hotwayd: invalid option -- s
  Usage: hotwayd [options and arguments]
    -h print usage page
    -l <loglevel> specify the logging level (0-2)
    -p [proxy:port] specify proxy
    -u [username] specify proxy username
    -q [password] specify proxy password
  Example: hotwayd -p http://proxy:8080 -u dave -q proxypass
  Note: proxy can be specified without a username or password
  Connection closed by foreign host.

This happens because of the 'server_flags = -s' line.  Removing server_args fixes the problem:

  null0 root # egrep -v "^#" /etc/xinetd.d/hotwayd 

  service hotwayd
  {
          type                    = UNLISTED
          only_from               = localhost
          socket_type             = stream
          wait                    = no
          user                    = nobody
          port                    = 110
          server                  = /usr/sbin/hotwayd
          log_on_success          += USERID
          log_on_failure          += USERID
  }
  null0 root # killall -HUP xinetd
  null0 root # telnet localhost 110
  Trying 127.0.0.1...
  Connected to localhost.
  Escape character is '^]'.
  +OK POP3 hotwayd v0.7.1 -> The POP3-HTTPMail Gateway. Server on null0 active.
  QUIT
  +OK see you later!
  Connection closed by foreign host.

Thanks!
Comment 1 Mark Warren 2004-06-20 17:47:21 UTC
I was a bit too quick to submit a bug on this.  There are instructions that resolve the problems described.  Sorry about that.