In killproc(), re-add a '--retry 5' to s-s-d when no signal is specified.
authorDidier Raboud <odyx@debian.org>
Wed, 7 Mar 2012 12:26:01 +0000 (13:26 +0100)
committerDidier Raboud <odyx@debian.org>
Sun, 11 Mar 2012 16:32:36 +0000 (17:32 +0100)
commit94e13e3eb4223a36273edd1717534fa5f7da8f0f
tree7701c9cdf35b10409e310c7f32e54d071252f999
parent317434268b5f7da43340de7d041402d27e2de255
In killproc(), re-add a '--retry 5' to s-s-d when no signal is specified.

According to the letter of the LSB:

killproc:"If a signal is specified, (...) the program is sent that signal.
          Otherwise, a SIGTERM followed by a SIGKILL after an unspecified
          number of seconds shall be sent."

According to start-stop-daemon manpage, that's what `--retry 5` does, with `5
seconds` being the `unspecified` of LSB, hence the `--retry 5` is only added
in the case where no signal is specified.

Closes: #650584
Reported-by: Daniel Nelson <torham@connect2.com>
Signed-off-by: Didier Raboud <odyx@debian.org>
init-functions