Daniel Ouellet wrote:
Alexander Hall wrote:
Daniel Ouellet wrote:

I am looking to add -R to inetd, but there isn't any
inetd_flags /.../

Do you really need to set it globally?

You could use the [.max] part of each configuration line for a service-specific setting.

Not sure that I follow what you are saying here.

man inetd.conf

     -R rate
        Specify the maximum number of times a service can
        be invoked in one minute; the default is 256.

If you refer at this part:
    wait/nowait[.max]

I already have this:
tftp dgram udp wait.6000 root /usr/libexec/tftpd tftpd -ls /distribution/phones/cisco

However, that doesn't help the limit of the 256 per minutes here.

Get plenty in the logs with deny connection, if I do not start inetd with the -R 1024 as well.

So, may be you understand something I do not, and if you add to your suggestion more details, may be I can follow.

from inetd(8):
  The optional ``max'' suffix (separated from ``wait'' or
  ``nowait'' by a dot) specifies the maximum number of
  server instances that may be spawned from inetd within
  an interval of 60 seconds.  When omitted, ``max''
  defaults to 256.

I just assumed, since the numbers also matched, that the -R option changed the default from 256 to whatever. I have not, however, used inetd actively in a long time, so I may be wrong.

It could be worth browsing the source to find out. :-)

/Alexander

Reply via email to