This is an old revision of the document!
# apt install inetutils-inetd
# apt-get install openbsd-inetd
# cat /etc/rc.conf
... inetd_enable=yes
# cat /etc/inetd.conf
... www stream tcp nowait root /usr/local/sbin/webd webd #www stream tcp nowait user1 /usr/local/sbin/webd webd #www stream tcp nowait root /usr/sbin/chroot chroot /var/www/ /sbin/webd
# cat /etc/inetd.conf
... http stream tcp nowait root /usr/local/sbin/webd webd #http stream tcp nowait user1 /usr/local/sbin/webd webd #http stream tcp nowait root /usr/sbin/chroot chroot /var/www/ /sbin/webd
ubuntu16# service inetutils-inetd restart ubuntu14# service inetutils-inetd start ubuntu12# /etc/init.d/openbsd-inetd restart
# /etc/rc.d/inetd start