Package: pure-ftpd
Severity: wishlist
Version: 1.0.21-11.4
Tags: patch
User: [EMAIL PROTECTED]
Usertags: origin-ubuntu ubuntu-patch jaunty

Following discussions on debian-devel [1] [2], here is a patch that
implements fast shutdown for the pure-ftpd daemon.

It basically avoids the init script to be called at system shutdown or
reboot, and instead rely on the processes being correctly terminated and
killed by the sendsigs script.

[1] http://lists.debian.org/debian-devel/2008/08/msg00030.html
[2] http://lists.debian.org/debian-devel/2008/07/msg00198.html

-- 
Thierry Carrez

diff -u pure-ftpd-1.0.21/debian/rules pure-ftpd-1.0.21/debian/rules
--- pure-ftpd-1.0.21/debian/rules
+++ pure-ftpd-1.0.21/debian/rules
@@ -118,7 +118,7 @@
 
 # pam and init
 	install -p -m644 debian/pam debian/pure-ftpd-common/etc/pam.d/pure-ftpd
-	dh_installinit
+	dh_installinit -- start 20 2 3 4 5 . stop 80 1 .
 
 # logrotate
 	dh_installlogrotate
diff -u pure-ftpd-1.0.21/debian/pure-ftpd.init.d pure-ftpd-1.0.21/debian/pure-ftpd.init.d
--- pure-ftpd-1.0.21/debian/pure-ftpd.init.d
+++ pure-ftpd-1.0.21/debian/pure-ftpd.init.d
@@ -4,7 +4,7 @@
 # Required-Start:    $remote_fs $syslog
 # Required-Stop:     $remote_fs $syslog
 # Default-Start:     2 3 4 5
-# Default-Stop:      0 1 6
+# Default-Stop:      1
 ### END INIT INFO
 #
 # pure-ftpd	starts and stops the pure-ftpd ftp daemon

Reply via email to