XINETD(8)
๐ XINETD(8) ๐
okay bestie, gather round, because today we're talking about xinetd โ the extended Internet services daemon โ and she's from the System Manager's Manual, so you know she's got lore. ๐
โจ NAME โจ
xinetd โ the extended Internet services daemon ๐ฆ
โจ SYNOPSIS โจ
xinetd [options]
โจ DESCRIPTION โจ
okay so first things first: xinetd does the exact same job as inetd โ it starts up programs that provide Internet services. ๐ธ
but here's the glow-up. instead of having all those servers started at system initialization time and just sitting there dormant like ๐ until a connection request rolls in, xinetd is the only daemon process started, and she listens on all the service ports for the services listed in her configuration file. the second a request comes in, she starts the appropriate server. and because of the way she operates, xinetd (and inetd too, fr) also gets called a super-server. ๐
now, the services in xinetd's config file split into two groups, and this part is important so pay attention:
- the first group โ these are called multi-threaded services, and they require forking a brand new server process for every single new connection request. that new server then handles that connection. for these services,
xinetdkeeps on listening for new requests so she can spawn more servers. ๐ง - the second group โ these are services where the service daemon itself is responsible for handling all the new connection requests. these are called single-threaded, and
xinetdwill stop handling new requests for them until the server dies. services in this group are usually datagram-based.
so like, up until now the only reason a super-server even existed was to conserve system resources by not forking a whole bunch of processes that might be dormant for basically their entire lifetime. ๐ด and while xinetd is fulfilling that function, she's also taking advantage of the whole super-server concept to give you features like access control and logging. plus โ and this is the iconic part โ xinetd is not limited to services listed in /etc/services. so literally anybody can use xinetd to start special-purpose servers. periodt. ๐
โจ OPTIONS โจ
-dโ enables debug mode. this produces a lot of debugging output, and it makes it possible to use a debugger onxinetd. ๐-syslog syslog_facilityโ this one turns on syslog logging ofxinetd-produced messages using the syslog facility you specify. these facility names are supported:daemon,auth,user,local[0-7](go checksyslog.conf(5)for what they mean). this option is ineffective in debug mode since all the relevant messages get sent to the terminal instead.-filelog logfileโxinetd-produced messages go into the file you specify. messages are always appended to the file, and if the file doesn't exist yet, it gets created. this option is ineffective in debug mode since all the relevant messages get sent to the terminal instead.-f config_fileโ determines the filexinetduses for configuration. the default is/etc/xinetd.conf. ๐๏ธ-pidfile pid_fileโ the process ID gets written to the file. this option is ineffective in debug mode.-dontforkโ tellsxinetdto stay in the foreground rather than detaching herself, so she can support being run frominitordaemontools. this option automatically sets-stayalive(see below).-stayaliveโ tellsxinetdto stay running even if no services are specified.-limit proc_limitโ places a limit on the number of concurrently running processes thatxinetdcan start. her whole purpose here is to prevent process table overflows. ๐-logprocs limitโ places a limit on the number of concurrently running servers for remote userid acquisition.-versionโ causesxinetdto print out her version information. ๐ข-inetd_compatโ causesxinetdto read/etc/inetd.confin addition to the standardxinetdconfig files./etc/inetd.confis read after the standardxinetdconfig files. ๐ซถ-cc intervalโ instructsxinetdto perform periodic consistency checks on her internal state every interval seconds. โฐ
k so heads up: thesyslogandfilelogoptions are mutually exclusive. if you don't specify either one, the default issyslogusing thedaemonfacility. and pls don't confusexinetdmessages with messages related to service logging โ those latter ones only get logged if it's specified via the configuration file. ๐
โจ CONTROLLING XINETD โจ
xinetd performs certain actions when she receives certain signals. the actions tied to specific signals can be redefined by editing config.h and recompiling. ๐ง
SIGHUPโ causes a hard reconfiguration, which meansxinetdre-reads the configuration file and terminates the servers for services that are no longer available. access control is performed again on running servers by checking the remote location, access times and server instances. if the number of server instances is lowered, some arbitrarily picked servers will be killed to satisfy the limit; this happens after any servers are terminated because of failing the remote location or access time checks. also, if theINTERCEPTflag was clear and is now set, any running servers for that service will be terminated; the purpose of this is to ensure that after a hard reconfiguration there will be no running servers that can accept packets from addresses that don't meet the access control criteria. ๐คSIGQUITโ causes program termination.SIGTERMโ terminates all running servers before terminatingxinetd.SIGUSR1โ causes an internal state dump (the default dump file is/var/run/xinetd.dump; to change the filename, editconfig.hand recompile). ๐๏ธSIGABRTโ causes an internal consistency check to verify that the data structures the program uses haven't been corrupted. when the check is done,xinetdgenerates a message saying whether the check was successful or not. โ
on reconfiguration the log files are closed and reopened. this lets you remove old log files. ๐
โจ FILES โจ
/etc/xinetd.confโ default configuration file/var/run/xinetd.dumpโ default dump file
โจ ENVIRONMENT โจ
REMOTE_HOSTโ contains the IP address of the client. ๐
โจ SEE ALSO โจ
โจ AUTHOR โจ
Panos Tsirigotis, CS Dept, University of Colorado, Boulder Rob Braun
โจ PRONUNCIATION โจ
zy-net-d ๐ฃ๏ธ (yes bestie, that's how you say it, no cap)
and that's the whole page!! this one came from the System Manager's Manual, dated 14 June 2001 โ so she's a lil vintage icon and we love her for it. ๐โจ bye bestie, go configure something iconic ๐ฆ
๐ฆ where this page comes from
- debian bookworm: xinetd 1:2.3.15.3-1+b1 ยท Custom
- debian trixie: xinetd 1:2.3.15.4-5 ยท Custom
- nixos 26.05: xinetd 2.3.15.4
- nixpkgs unstable: xinetd 2.3.15.4
- opensuse-leap 16.0: xinetd 2.3.15.4-bp160.1.12 ยท xinetd
- opensuse-leap 16.0: xinetd 2.3.15.4-bp160.1.12 ยท xinetd
- opensuse-leap 16.0: xinetd 2.3.15.4-bp160.1.12 ยท xinetd
- opensuse-leap 16.0: xinetd 2.3.15.4-bp160.1.12 ยท xinetd
- ubuntu jammy: xinetd 1:2.3.15.3-1 ยท Custom
- ubuntu noble: xinetd 1:2.3.15.4-3build1 ยท Custom
- ubuntu questing: xinetd 1:2.3.15.4-6
- ubuntu resolute: xinetd 1:2.3.15.4-6build1 ยท Custom
- ubuntu stonking: xinetd 1:2.3.15.4-6build1 ยท Custom
- Copyright 1992 by Panagiotis Tsirigotis
- Copyright 1998-2001 by Rob Braun
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms