Since xinetd is not provided by SliTaz, I download xinetd-2.3.14 from some site (the official website is inaccessible). Configure it with --prefix=/usr, make && make install. Then I create /etc/xinetd.conf:
service swat { socket_type = stream server = /usr/sbin/swat disable = no port = 901 wait = no user = root protocol = tcp }
Then I try to start the daemon by ./xinetd -d, it shows "Protocol tcp not in /etc/protocols". Then I remove the protocol line in xinetd.conf, it then says "A protocol or a socket_type must be specified for service: swat".
I have succeeded in running swat by inetd provided by SliTaz originally, but I'm still curious about how to use xinetd to run swat. Thank you.
I think the config files for individual services, like that block, are stored as files inside /etc/xinet.d/ and /etc/xinetd.conf is left as-is. I'm basing this from my Fedora install, so may be different. I'll zip my files if you'd like.