LX0-104 · Question #454
You have replaced inetd with xinetd.What must be done after installing to ensure that your machine will work correctly?
The correct answer is C. You must create a new configuration file for xinetd.. Replacing inetd with xinetd requires a new configuration file because xinetd uses a different and incompatible configuration syntax.
Question
Options
- AYou must add a symbolic link from inetd.conf to xinetd.conf.
- BYou don't have to do anything because they are compatible.
- CYou must create a new configuration file for xinetd.
- DYou must run xinetd-configure first.
How the community answered
(19 responses)- B5% (1)
- C89% (17)
- D5% (1)
Why each option
Replacing `inetd` with `xinetd` requires a new configuration file because `xinetd` uses a different and incompatible configuration syntax.
Creating a symbolic link from `inetd.conf` to `xinetd.conf` would not work because the file formats are incompatible, leading to `xinetd` failing to parse the configuration.
`inetd` and `xinetd` are not configuration-compatible; their respective configuration files (`/etc/inetd.conf` versus `/etc/xinetd.conf` and `/etc/xinetd.d/*`) have distinct syntaxes and directives.
`xinetd` uses its own configuration file format and structure, typically located at `/etc/xinetd.conf` and individual service files in `/etc/xinetd.d/`. This format is different from `inetd`'s `/etc/inetd.conf`, so a new configuration must be created or converted for `xinetd` to function correctly.
`xinetd-configure` is not a standard command or tool to automatically generate the configuration; administrators typically create or manually convert the configuration files.
Concept tested: inetd vs xinetd configuration differences
Source: https://man7.org/linux/man-pages/man8/xinetd.8.html
Topics
Community Discussion
No community discussion yet for this question.