Linux Foundation Certified System Administrator Exam: Missing Signal for Daemon Reinitialization

Which Signal is Missing for Daemon Reinitialization in LFCS Exam?

Question

SIMULATION -

Which signal is missing from the following command that is commonly used to instruct a daemon to reinitialize itself, including reading configuration files? killall -s _______ daemon

Explanations

HUP -or- SIGHUP -or- 1

The missing signal from the command killall -s _______ daemon that is commonly used to instruct a daemon to reinitialize itself, including reading configuration files, is the HUP signal.

The HUP signal, also known as the Hangup signal, instructs a daemon to reinitialize itself, including reading configuration files, without actually terminating the process. This is useful for making changes to the configuration of a running daemon without having to stop and start it again.

To send the HUP signal to a daemon named daemon, you can use the following command:

killall -HUP daemon

This will send the HUP signal to all processes named daemon. Alternatively, you can use the process ID (PID) of the daemon instead of its name, like this:

bash
kill -HUP <pid>

Where <pid> is the process ID of the daemon that you want to send the signal to. You can find the process ID of a daemon using tools like ps or pidof.

It's worth noting that not all daemons support the HUP signal or use it to reinitialize themselves. In such cases, you may need to use other signals or methods to make changes to the daemon's configuration.