From /etc/xinetd.conf, load per-service configuration files stored in /etc/xinetd.d.
Which directive is appropriate?
includedir /etc/xinetd.d loads service-specific files from the directory. Both the main file and drop-in files should be audited.
Detailed explanation
includedir /etc/xinetd.dCorrect. It loads configuration files from the directory.
Correct. It loads configuration files from the directory.
include = /etc/xinetd.d/*Incorrect. This is not xinetd's includedir syntax.
Incorrect. This is not xinetd's includedir syntax.
source /etc/xinetd.dIncorrect. source is a shell command, not an xinetd directive.
Incorrect. source is a shell command, not an xinetd directive.
load-dir: /etc/xinetd.dIncorrect. This is not a standard xinetd.conf directive.
Incorrect. This is not a standard xinetd.conf directive.
Try it yourself
An example you can run in a temporary verification environment.
printf '%s
' 'includedir /etc/xinetd.d'Expected result
includedir /etc/xinetd.dKey points
- Use includedir
- Per-service files
- Audit the main file and directory
Notes
- Environment: xinetd設定構文の表示のみ
- Command output formatting can vary slightly by distribution or tool version.
- Run the example in a temporary directory or process when possible.
Foundation review
Read the scope first
Check whether the command acts on the current shell, a new process, an existing process, or a file.
Verify the observable result
Use the supplied command and compare the output with the expected result.