#575405 knockd: Knockd should trigger stop command on server shutdown

Package:
knockd
Source:
knockd
Description:
small port-knock daemon
Submitter:
janning
Date:
2010-03-25 15:39:11 UTC
Severity:
normal
#575405#5
Date:
2010-03-25 15:18:42 UTC
From:
To:
If you have a knockd configuration with a start_command and a stop_command, the stop_command does not get executed if you shutdown the knockd server.
stop_command should executed on cmd_timeout OR knockd shutdown, otherwise leaving the system in an inconsistent state.

so runing /etc/init.d/knockd stop should trigger "stop_command" if and only if knockd is still waiting for a cmd_timeout.

that way you do not need to run a stop_command manually if you change your knockd.conf and restart your knockd server.

regards
janning