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

Answer: HUP 或 SIGHUP 或 1

题解

「killall」指令可以尽可能地停止某个已经正在运行中的指令(command)。killall 可以发送数种不同的信号(signal),如下:

  • SIGHUP(1)
  • SIGINT(2)
  • SIGKILL(9)
  • SIGTERM(15)
  • SIGSTOP(17,19,23)

SIGHUP 信号常被用来作为重新初始化守护进程(daemon)的信号。可用「SIGHUP」、「HUP」或是「1」来表示。