nerdexam
CompTIA

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.

System Management

Question

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 commands should the administrator use to load the new configuration?

Options

  • Asudo killall -HUP httpd
  • Bsudo killall -reload httpd
  • Csudo killall -9 httpd
  • Dsudo killall -TERM httpd

How the community answered

(63 responses)
  • A
    90% (57)
  • B
    5% (3)
  • C
    3% (2)
  • D
    2% (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.

Asudo killall -HUP httpdCorrect

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.

Bsudo killall -reload httpd

The `-reload` option is not a standard signal name or recognized option for the `killall` command.

Csudo killall -9 httpd

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.

Dsudo killall -TERM httpd

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

#Linux Signals#Service Management#Apache Configuration#killall

Community Discussion

No community discussion yet for this question.

Full XK0-005 Practice