XK0-005 · Question #10820
After making a configuration change to an Apache web server, an administrator needs to reload the service. However, sudo access was only granted to the command. killall Which of the following…
The correct answer is A. sudo killall -HUP httpd. To gracefully reload an Apache web server's configuration when sudo access is restricted to killall, the HUP signal is used.
Question
Options
- Asudo killall -HUP httpd
- Bsudo killall -reload httpd
- Csudo killall -9 httpd
- Dsudo killall -TERM httpd
How the community answered
(63 responses)- A90% (57)
- B5% (3)
- C3% (2)
- D2% (1)
Why each option
To gracefully reload an Apache web server's configuration when `sudo` access is restricted to `killall`, the HUP signal is used.
Sending the `HUP` (Hang Up) signal to the `httpd` process, typically with `killall -HUP httpd`, instructs the Apache web server to gracefully reread its configuration files and apply changes without interrupting active connections. This is the standard method for reloading Apache's configuration without a full restart.
The `-reload` option is not a standard signal name or recognized option for the `killall` command.
Sending signal 9 (`KILL`) forces an immediate, ungraceful termination of the process, which can lead to data loss or service disruption, and does not allow for a configuration reload.
Sending signal 15 (`TERM`) requests a graceful shutdown of the process, which usually causes the service to exit rather than just reloading its configuration.
Concept tested: Process signaling (`killall -HUP`)
Source: https://linux.die.net/man/1/killall
Topics
Community Discussion
No community discussion yet for this question.