Please call insserv on package installation

Martin Pitt mpitt at debian.org
Thu Jul 14 08:57:26 BST 2016


Hello again,

Martin Pitt [2016-07-13 12:47 +0200]:
> Tested debdiff attached. As per the LowNMU flag I'd like to upload it
> this week, but I'll wait a day or two in case you want to comment.

Uploaded now, with two changes:  I added the missing #DEBHELPER# token
and used my Debian email address in the changelog. NMUed debdiff
attached.

Thanks,

Martin

-- 
Martin Pitt                        | http://www.piware.de
Ubuntu Developer (www.ubuntu.com)  | Debian Developer  (www.debian.org)
-------------- next part --------------
diff -Nru insserv-1.14.0/debian/changelog insserv-1.14.0/debian/changelog
--- insserv-1.14.0/debian/changelog	2016-02-23 01:22:09.000000000 +0100
+++ insserv-1.14.0/debian/changelog	2016-07-14 09:49:19.000000000 +0200
@@ -1,3 +1,12 @@
+insserv (1.14.0-5.4) unstable; urgency=medium
+
+  * Non-maintainer upload.
+  * Add debian/postinst: Run insserv after package installation, to fix up the
+    rc?.d priorities from the dumb update-rc.d fallback (which uses priority
+    01 for everything). (Closes: #830963)
+
+ -- Martin Pitt <mpitt at debian.org>  Wed, 13 Jul 2016 12:40:50 +0200
+
 insserv (1.14.0-5.3) unstable; urgency=medium
 
   * Non-maintainer upload.
diff -Nru insserv-1.14.0/debian/postinst insserv-1.14.0/debian/postinst
--- insserv-1.14.0/debian/postinst	1970-01-01 01:00:00.000000000 +0100
+++ insserv-1.14.0/debian/postinst	2016-07-14 09:49:46.000000000 +0200
@@ -0,0 +1,11 @@
+#!/bin/sh
+set -e
+
+#DEBHELPER#
+
+# When installing insserv (usually via sysvinit-core) on an existing system,
+# fix up the rc?.d priorities from the dumb update-rc.d fallback (which uses
+# priority 01 for everything).
+if [ "$1" = "configure" ] && [ -z "$2" ]; then
+    /sbin/insserv || true
+fi


More information about the Pkg-systemd-maintainers mailing list