Denys Vlasenko | f5c2f72 | 2009-11-08 00:55:39 +0100 | [diff] [blame] | 1 | # [ADDR:]service_name must be in /etc/services, or port number |
| 2 | # socket_type stream/dgram/raw/rdm/seqpacket |
| 3 | # protocol tcp/udp |
| 4 | # wait/nowait[.max] wait is usually for udp, nowait for tcp |
| 5 | # max: max copies to run |
| 6 | # user[.group] or user[:group] user and group to run under |
| 7 | # binary program to run |
| 8 | # arg0 arg1 arg2... arguments, INCLUDING program name (arg0) |
| 9 | |
| 10 | # serv socket pro w/nw user binary args |
| 11 | |
| 12 | # IPv6 |
| 13 | 555 dgram udp6 wait root echo echo Hello IPv6 udp world |
| 14 | # ...with ADDR prefix: |
| 15 | ::1:444 stream tcp6 nowait root echo echo Hello IPv6 localhost |
| 16 | |
| 17 | # Rarely seen case: tcp *wait* service |
| 18 | telnet stream tcp wait root telnetd telnetd -w10 |