Sorry, wrong patch attached. here is the good one.
--
Thierry Carrez
diff -ruN pure-ftpd-1.0.21.orig/debian/control pure-ftpd-1.0.21/debian/control
--- pure-ftpd-1.0.21.orig/debian/control 2008-11-17 14:08:00.000000000 +0100
+++ pure-ftpd-1.0.21/debian/control 2008-11-17 14:04:29.000000000 +0100
@@ -18,7 +18,7 @@
Package: pure-ftpd
Architecture: any
-Depends: pure-ftpd-common (=${source:Version}), ${shlibs:Depends}
+Depends: lsb-base (>= 3.2-14), pure-ftpd-common (=${source:Version}), ${shlibs:Depends}
Provides: ftp-server
Conflicts: ftp-server
Replaces: ftp-server
@@ -33,7 +33,7 @@
Package: pure-ftpd-mysql
Architecture: any
-Depends: pure-ftpd-common (=${source:Version}), ${shlibs:Depends}
+Depends: lsb-base (>= 3.2-14), pure-ftpd-common (=${source:Version}), ${shlibs:Depends}
Provides: ftp-server, pure-ftpd
Conflicts: ftp-server, pure-ftpd
Replaces: ftp-server, pure-ftpd
@@ -48,7 +48,7 @@
Package: pure-ftpd-postgresql
Architecture: any
-Depends: pure-ftpd-common (=${source:Version}), ${shlibs:Depends}
+Depends: lsb-base (>= 3.2-14), pure-ftpd-common (=${source:Version}), ${shlibs:Depends}
Provides: ftp-server, pure-ftpd
Conflicts: ftp-server, pure-ftpd
Replaces: ftp-server, pure-ftpd
@@ -63,7 +63,7 @@
Package: pure-ftpd-ldap
Architecture: any
-Depends: pure-ftpd-common (=${source:Version}), ${shlibs:Depends}
+Depends: lsb-base (>= 3.2-14), pure-ftpd-common (=${source:Version}), ${shlibs:Depends}
Provides: ftp-server, pure-ftpd
Conflicts: ftp-server, pure-ftpd
Replaces: ftp-server, pure-ftpd
diff -ruN pure-ftpd-1.0.21.orig/debian/pure-ftpd.init.d pure-ftpd-1.0.21/debian/pure-ftpd.init.d
--- pure-ftpd-1.0.21.orig/debian/pure-ftpd.init.d 2008-11-17 14:08:00.000000000 +0100
+++ pure-ftpd-1.0.21/debian/pure-ftpd.init.d 2008-11-17 14:09:34.000000000 +0100
@@ -18,6 +18,9 @@
UDDESC="ftp upload handler"
WRAPPER=/usr/sbin/pure-ftpd-wrapper
+# load LSB init-functions to get status_of_proc helper
+. /lib/lsb/init-functions
+
# try to figure with suffix this script is called,
# $0 might be a symlink pointing to this script
if [ -h $0 ]; then
@@ -91,9 +94,12 @@
/var/run/pure-ftpd/pure-ftpd.pid --exec $WRAPPER -- $SUFFIX
start_uploadscript Restarting
;;
+ status)
+ status_of_proc -p /var/run/pure-ftpd/pure-ftpd.pid $DAEMON $NAME && exit 0 || exit $?
+ ;;
*)
N=/etc/init.d/$NAME
- echo "Usage: $N {start|stop|restart|force-reload}" >&2
+ echo "Usage: $N {start|stop|restart|force-reload|status}" >&2
exit 1
;;
esac