Package: slapd
Version: 2.4.17-1
Severity: wishlist
Tags: patch
User: [email protected]
Usertags: initd-status-support

Here is a patch to support the "status" action in the init.d script.
diff -u openldap-2.4.17/debian/changelog openldap-2.4.17/debian/changelog
--- openldap-2.4.17/debian/changelog
+++ openldap-2.4.17/debian/changelog
@@ -1,3 +1,10 @@
+openldap (2.4.17-1.1) UNRELEASED; urgency=low
+
+  * Non-maintainer upload.
+  * Add init.d status support.
+
+ -- Peter Eisentraut <[email protected]>  Wed, 09 Sep 2009 23:14:27 +0300
+
 openldap (2.4.17-1) unstable; urgency=low
 
   * New upstream version.
diff -u openldap-2.4.17/debian/slapd.init openldap-2.4.17/debian/slapd.init
--- openldap-2.4.17/debian/slapd.init
+++ openldap-2.4.17/debian/slapd.init
@@ -11,6 +11,8 @@
 # Specify path variable
 PATH=/sbin:/usr/sbin:/bin:/usr/bin
 
+. /lib/lsb/init-functions
+
 # Kill me on all errors
 set -e
 
@@ -196,8 +198,11 @@
   	stop_ldap
 	start_ldap
 	;;
+  status)
+	status_of_proc -p $SLAPD_PIDFILE $SLAPD slapd
+	;;
   *)
-  	echo "Usage: $0 {start|stop|restart|force-reload}"
+  	echo "Usage: $0 {start|stop|restart|force-reload|status}"
 	exit 1
 	;;
 esac
diff -u openldap-2.4.17/debian/control openldap-2.4.17/debian/control
--- openldap-2.4.17/debian/control
+++ openldap-2.4.17/debian/control
@@ -26,7 +26,7 @@
 Pre-Depends: debconf (>= 0.5) | debconf-2.0
 Depends: ${shlibs:Depends}, libldap-2.4-2 (= ${binary:Version}),
  coreutils (>= 4.5.1-1), psmisc, perl (>> 5.8.0) | libmime-base64-perl,
- adduser
+ adduser, lsb-base (>= 3.2-13)
 Recommends: libsasl2-modules
 Suggests: ldap-utils
 Conflicts: umich-ldapd, ldap-server, libltdl3 (= 1.5.4-1)

Reply via email to