Public bug reported:

I have wanted the init script from heimdal-kdc to start kadmind, but it
doesn't already do so. Attached is a patch that enables such
functionality akin to how it is already being done with configuration
items controlled via /etc/defaults/heimdal-kdc.

This patch is for heimdal-0.7.2.dfsg.1-6:

diff -ru heimdal-0.7.2.dfsg.1.orig/debian/changelog 
heimdal-0.7.2.dfsg.1/debian/changelog
--- heimdal-0.7.2.dfsg.1.orig/debian/changelog  2006-11-27 14:59:09.627483000 
-0600
+++ heimdal-0.7.2.dfsg.1/debian/changelog       2006-11-27 15:08:49.062282750 
-0600
@@ -1,3 +1,13 @@
+heimdal (0.7.2.dfsg.1-6.1) unstable; urgency=low
+
+  * Non-maintainer upload.
+  * debian/extras/default:
+    Provided an option to toggle whether kadmind is started.
+  * debian/heimdal-kdc.init:
+    Provided a mechanism for starting kadmind if desired.
+
+ -- Matt Proud <[EMAIL PROTECTED]>  Mon, 27 Nov 2006 15:05:19 -0600
+
 heimdal (0.7.2.dfsg.1-6) unstable; urgency=low
 
   * Update maintainer E-Mail address.
diff -ru heimdal-0.7.2.dfsg.1.orig/debian/extras/default 
heimdal-0.7.2.dfsg.1/debian/extras/default
--- heimdal-0.7.2.dfsg.1.orig/debian/extras/default     2006-11-27 
15:01:56.444495750 -0600
+++ heimdal-0.7.2.dfsg.1/debian/extras/default  2006-11-27 15:01:09.985592250 
-0600
@@ -6,6 +6,10 @@
 KPASSWDD_ENABLED=yes
 KPASSWDD_PARAMS=""
 
+# Is kadmind started?
+KADMIND_ENABLED=no
+KADMIND_PARAMS=""
+
 # kprop master?
 MASTER_ENABLED=no
 
diff -ru heimdal-0.7.2.dfsg.1.orig/debian/heimdal-kdc.init 
heimdal-0.7.2.dfsg.1/debian/heimdal-kdc.init
--- heimdal-0.7.2.dfsg.1.orig/debian/heimdal-kdc.init   2006-11-27 
14:59:09.611482000 -0600
+++ heimdal-0.7.2.dfsg.1/debian/heimdal-kdc.init        2006-11-27 
15:04:48.687260250 -0600
@@ -18,11 +18,15 @@
 KPASSWDD_DAEMON=/usr/lib/heimdal-servers/kpasswdd
 KPASSWDD_NAME=kpasswdd
 KPASSWDD_DESC="Heimdal password server"
+KADMIND_DAEMON=/usr/lib/heimdal-servers/kadmind
+KADMIND_NAME=kadmind
+KADMIND_DESC="Heimdal administration server"
 
 . /etc/default/heimdal-kdc
 
 test -f $KDC_DAEMON || exit 0
 test -f $KPASSWDD_DAEMON || exit 0
+test -f $KADMIND_DAEMON || exit 0
 
 set -e
 
@@ -44,6 +48,14 @@
                        --exec $KPASSWDD_DAEMON -- $KPASSWDD_PARAMS
                echo "$KPASSWDD_NAME."
        fi
+       if [ "$KADMIND_ENABLED" = "yes" ];
+       then
+               echo -n "Starting $KADMIND_DESC: "
+               start-stop-daemon --start --quiet --background \
+                       --make-pidfile --pidfile /var/run/$KADMIND_NAME.pid \
+                       --exec $KADMIND_DAEMON -- $KADMIND_PARAMS
+               echo "$KADMIND_NAME."
+       fi
        if [ "$MASTER_ENABLED" = "yes" ];
        then
                echo -n "Starting incremental propagation master: "
@@ -76,6 +88,13 @@
                        --exec $KDC_DAEMON -- $KDC_PARAMS
                echo "$KDC_NAME."
        fi
+       if [ -f /var/run/$KADMIND_NAME.pid  ]
+       then
+               echo -n "Stopping $KADMIND_DESC: "
+               start-stop-daemon --stop --oknodo --quiet --pidfile 
/var/run/$KADMIND_NAME.pid \
+                       --exec $KADMIND_DAEMON -- $KADMIND_PARAMS
+               echo "$KADMIND_NAME."
+       fi
        if [ -f /var/run/ipropd-master.pid ]
        then
                echo -n "Stopping incremental propagation master: "

** Affects: heimdal (Ubuntu)
     Importance: Undecided
         Status: Unconfirmed

-- 
Provide mechanism in heimdal-kdc.init to start/stop kadmind
https://launchpad.net/bugs/73534

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to