Bug#775277: krb5-kdc: kpropd init scripts missing from package
Michael == Michael Weiser m.wei...@science-computing.de writes: Michael Hi, Mark and I have built and used our own local packages Michael with this patch applied for some revisions now (at least Michael -17, -18 and -19) and all seems fine. But it it is quite a Michael hassle to rebuild those local packages on every Debian Michael update. Michael Since we have provided a full, self-contained patch that Michael seems to solve the issue for good, can you please review Michael and comment on it so we can make some progress on getting Michael it included into the Debian package? Unfortunately, Debian 8.0 is in the final release freeze. After the release of Debian 8.0 later this month, we'll take a look for inclusion in the next Debian release. That's going to be a couple of years out though. --Sam -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Bug#775277: krb5-kdc: kpropd init scripts missing from package
Hi Sam, On Wed, Apr 15, 2015 at 09:30:37AM -0400, Sam Hartman wrote: Michael Since we have provided a full, self-contained patch that Michael seems to solve the issue for good, can you please review Michael and comment on it so we can make some progress on getting Michael it included into the Debian package? Unfortunately, Debian 8.0 is in the final release freeze. After the release of Debian 8.0 later this month, we'll take a look for inclusion in the next Debian release. That's going to be a couple of years out though. Thanks for the quick update. How likely is it going to be to get this into jessie-backports once 8.0 is out? Obviously we're willing to help with that in terms of patching and testing. Can we get the review and integration process started even though 8.0 isn't out yet? This way we could provide updates and fixes as needed ahead of time and start the backporting to 8.0 as quickly as possible. At the worst (if refused) we'd at least know not to waste any more energy and waiting time on it and go looking for a more permanent workaround than building patched local packages. Thank you, -- Michael Weiserscience + computing ag Senior Systems Engineer Geschaeftsstelle Duesseldorf Faehrstrasse 1 phone: +49 211 302 708 32 D-40221 Duesseldorf fax: +49 211 302 708 50 www.science-computing.de -- Vorstandsvorsitzender/Chairman of the board of management: Gerd-Lothar Leonhart Vorstand/Board of Management: Dr. Bernd Finkbeiner, Dr. Arno Steitz Vorsitzender des Aufsichtsrats/ Chairman of the Supervisory Board: Philippe Miltin Sitz/Registered Office: Tuebingen Registergericht/Registration Court: Stuttgart Registernummer/Commercial Register No.: HRB 382196 -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Bug#775277: krb5-kdc: kpropd init scripts missing from package
Hi, Mark and I have built and used our own local packages with this patch applied for some revisions now (at least -17, -18 and -19) and all seems fine. But it it is quite a hassle to rebuild those local packages on every Debian update. Since we have provided a full, self-contained patch that seems to solve the issue for good, can you please review and comment on it so we can make some progress on getting it included into the Debian package? In the meantime I have found https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=734161 which unfortunately we seem to have duplicated. From what I gather, the same issue has been discussed but not fixed there as well. Feel free to close either as duplicate of the other and we will resubmit our patch as needed. Thank you, -- Michael Weiserscience + computing ag Senior Systems Engineer Geschaeftsstelle Duesseldorf Faehrstrasse 1 phone: +49 211 302 708 32 D-40221 Duesseldorf fax: +49 211 302 708 50 www.science-computing.de -- Vorstandsvorsitzender/Chairman of the board of management: Gerd-Lothar Leonhart Vorstand/Board of Management: Dr. Bernd Finkbeiner, Dr. Arno Steitz Vorsitzender des Aufsichtsrats/ Chairman of the Supervisory Board: Philippe Miltin Sitz/Registered Office: Tuebingen Registergericht/Registration Court: Stuttgart Registernummer/Commercial Register No.: HRB 382196 -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Bug#775277: krb5-kdc: kpropd init scripts missing from package
Package: krb5-kdc Version: 1.12.1 Severity: normal Tags: patch Dear Maintainer, krb5-kdc package does not supply init scripts for kpropd. The attached patch adds a script and a systemd unit file and updates the package to install those files. They are not activated using update-rc.d intentionally, since kpropd should only run on secondary KDCs. -- System Information: Debian Release: 8.0 APT prefers testing-updates APT policy: (500, 'testing-updates'), (500, 'testing') Architecture: amd64 (x86_64) Kernel: Linux 3.16.0-4-amd64 (SMP w/3 CPU cores) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Init: systemd (via /run/systemd/system) -- Vorstandsvorsitzender/Chairman of the board of management: Gerd-Lothar Leonhart Vorstand/Board of Management: Dr. Bernd Finkbeiner, Michael Heinrichs, Dr. Arno Steitz Vorsitzender des Aufsichtsrats/ Chairman of the Supervisory Board: Philippe Miltin Sitz/Registered Office: Tuebingen Registergericht/Registration Court: Stuttgart Registernummer/Commercial Register No.: HRB 382196 From 41af73e0a20232955586a43f4d63eb8f49f72a30 Mon Sep 17 00:00:00 2001 From: Mark Proehl m.pro...@science-computing.de Date: Tue, 13 Jan 2015 14:34:50 +0100 Subject: [PATCH 1/2] Add kpropd init scripts --- debian/krb5-kdc.install| 2 + debian/krb5-kpropd.init| 127 + debian/krb5-kpropd.service | 14 + debian/rules | 5 +- 4 files changed, 147 insertions(+), 1 deletion(-) create mode 100755 debian/krb5-kpropd.init create mode 100644 debian/krb5-kpropd.service diff --git a/debian/krb5-kdc.install b/debian/krb5-kdc.install index 93aecc4..0660c9f 100644 --- a/debian/krb5-kdc.install +++ b/debian/krb5-kdc.install @@ -8,3 +8,5 @@ usr/sbin/krb5kdc usr/share/man/man8/krb5kdc.8 usr/share/man/man5/kdc.conf.5 usr/lib/*/krb5/plugins/kdb/db2.so +lib/systemd/system/krb5-kpropd.service +etc/init.d/krb5-kpropd diff --git a/debian/krb5-kpropd.init b/debian/krb5-kpropd.init new file mode 100755 index 000..4098a19 --- /dev/null +++ b/debian/krb5-kpropd.init @@ -0,0 +1,127 @@ +#! /bin/sh +### BEGIN INIT INFO +# Provides: krb5-kpropd +# Required-Start: $local_fs $remote_fs $network $syslog +# Required-Stop:$local_fs $remote_fs $network $syslog +# X-Start-Before: $x-display-manager +# Default-Start:2 3 4 5 +# Default-Stop: 0 1 6 +# Short-Description:MIT Kerberos slave KDC update server +# Description: Starts, stops, or restarts the MIT Kerberos slave KDC +# update server +### END INIT INFO + +# Author: Sam Hartman hartm...@mit.edu +# Author: Russ Allbery r...@debian.org +# +# Based on the /etc/init.d/skeleton template as found in initscripts version +# 2.86.ds1-15. + +PATH=/usr/sbin:/usr/bin:/sbin:/bin +DESC=Kerberos slave KDC update server +NAME=kpropd +DAEMON=/usr/sbin/$NAME +DAEMON_ARGS= +PIDFILE=/var/run/$NAME.pid +SCRIPTNAME=/etc/init.d/kpropd + +# Exit if the package is not installed. +[ -x $DAEMON ] || exit 0 + +# Read configuration if it is present. +[ -r /etc/default/kpropd ] . /etc/default/kpropd + +# Get the setting of VERBOSE and other rcS variables. +[ -f /etc/default/rcS ] . /etc/default/rcS + +# Define LSB log functions (requires lsb-base = 3.0-6). +. /lib/lsb/init-functions + + +# Return +# 0 if daemon has been started +# 1 if daemon was already running +# 2 if daemon could not be started +do_start_kpropd() +{ +start-stop-daemon --start --quiet --pidfile $PIDFILE --startas $DAEMON --name $NAME --test \ + /dev/null || return 1 +start-stop-daemon --start --quiet --make-pidfile --background --pidfile $PIDFILE --startas $DAEMON --name $NAME \ +-- -D $DAEMON_ARGS || return 2 +} + + +# Return +# 0 if daemon has been stopped +# 1 if daemon was already stopped +# 2 if daemon could not be stopped +# other if a failure occurred +do_stop_kpropd() +{ +start-stop-daemon --stop --quiet --retry=TERM/30/KILL/5 --pidfile $PIDFILE --name $NAME +RETVAL=$? +[ $RETVAL = 2 ] return 2 +rm -f $PIDFILE +return $RETVAL +} + + +case $1 in + start) +[ $VERBOSE != no ] log_daemon_msg Starting $DESC $NAME +do_start_kpropd +case $? in + 0|1) +[ $VERBOSE != no ] log_end_msg 0 +;; + 2) +[ $VERBOSE != no ] log_end_msg 1 +;; +esac +;; + + stop) +[ $VERBOSE != no ] log_daemon_msg Stopping $DESC $NAME +do_stop_kpropd +case $? in + 0|1) +[ $VERBOSE != no ] log_progress_msg krb524d +;; + 2) +[ $VERBOSE != no ] log_end_msg 1 +;; +esac +;; + + restart|force-reload) +log_daemon_msg Restarting $DESC $NAME +do_stop_kpropd +case $? in + 0|1) +do_start_kpropd +case $? in + 0) + log_end_msg 0 + ;; + 1|2) +log_end_msg 1 +