A cluster of background worker processes all run under the name "webapp". After updating its configuration files, you need to prompt every instance to re-read settings by sending the hangup signal. Which command achieves this goal?
Using pkill with the -HUP option targets every process matching the name and sends the SIGHUP (hangup) signal, instructing them to reload configuration. The other options either omit the signal (defaulting to SIGTERM), send a different signal, or use kill without specifying the required signal.
Ask Bash
Bash is our AI bot, trained to help you pass your exam. AI Generated Content may display inaccurate information, always double-check anything important.
What does the hangup signal (SIGHUP) do in this context?
Open an interactive chat with Bash
What is the difference between the pkill and kill commands?
Open an interactive chat with Bash
What are the various signals that can be sent to processes in Unix-like systems?