[ Team LiB ] |
Recipe 3.6 Adding a New Service (inetd)3.6.1 ProblemYou want to add a new network service, controlled by inetd . 3.6.2 SolutionAdd a new line to /etc/inetd.conf of the form: SERVICE_NAME SOCKET_TYPE PROTOCOL THREADING USER /PATH/TO/SERVER ARGS Then signal inetd to reread /etc/inetd.conf. [Recipe 3.4] 3.6.3 DiscussionThe values on the line are:
A full example is: telnet stream tcp nowait root /usr/sbin/in.telnetd in.telnetd A line in inetd.conf may contain a few other details as well, specifying buffer sizes, a local host address for listening, and so forth. See the manpage. 3.6.4 See Alsoinetd(8), inetd.conf(5), services(5). |
[ Team LiB ] |