Package: wu-ftpd
Version: 2.6.2-30
Lenny wu-ftpd server to do not stop when it receives SIGTERM signal
causing /etc/init.d/wu-ftpd to wait 30 seconds to trigger the kill
signal (which delays stop and restart commands).
Attached is a a simple modification to the init.d script to signal INT
rather TERM.
A more appropriate solution would be to report upstream its server
should finish after receiving SIGTERM. Please, notify me if a patch for
this is required.
Cheers!
--
Francis Brosnan Blazquez <[email protected]>
ASPL
--- /etc/init.d/wu-ftpd.orig 2009-07-13 15:14:04.000000000 +0200
+++ /etc/init.d/wu-ftpd 2009-07-13 15:07:49.000000000 +0200
@@ -82,7 +82,7 @@
# 1 if daemon was already stopped
# 2 if daemon could not be stopped
# other if a failure occurred
- start-stop-daemon --stop --quiet --retry=TERM/30/KILL/5 --pidfile $PIDFILE --name $NAME
+ start-stop-daemon --stop --quiet --retry=INT/30/KILL/5 --pidfile $PIDFILE --name $NAME
RETVAL="$?"
[ "$RETVAL" = 2 ] && return 2
start-stop-daemon --stop --quiet --oknodo --retry=0/30/KILL/5 --exec $DAEMON