[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Monotone-debian] Bug#542287: monotone-server: Incorrect runlevels and d
From: |
Petter Reinholdtsen |
Subject: |
[Monotone-debian] Bug#542287: monotone-server: Incorrect runlevels and dependencies in init.d script |
Date: |
Thu, 1 Oct 2009 21:09:10 +0200 |
User-agent: |
Mutt/1.5.19 (2009-01-05) |
Here is a more complete patch, to help you get the fix into unstable.
Please let us know if we should not NMU to fix it. :)
diff -ur ../monotone-0.44/debian/monotone-server.monotone.init
../monotone-0.44-pere/debian/monotone-server.monotone.init
--- ../monotone-0.44/debian/monotone-server.monotone.init 2009-10-01
20:44:18.000000000 +0200
+++ ../monotone-0.44-pere/debian/monotone-server.monotone.init 2009-10-01
20:45:41.000000000 +0200
@@ -6,10 +6,10 @@
#
### BEGIN INIT INFO
# Provides: monotone
-# Required-Start: $network $local_fs
-# Required-Stop: $network $local_fs
-# Default-Start: 3 4 5
-# Default-Stop: 0 1 2 6
+# Required-Start: $network $remote_fs $syslog
+# Required-Stop: $network $remote_fs $syslog
+# Default-Start: 2 3 4 5
+# Default-Stop: 0 1 6
# Short-Description: Monotone server.
### END INIT INFO
diff -ur ../monotone-0.44/debian/monotone-server.postinst
../monotone-0.44-pere/debian/monotone-server.postinst
--- ../monotone-0.44/debian/monotone-server.postinst 2009-10-01
20:44:18.000000000 +0200
+++ ../monotone-0.44-pere/debian/monotone-server.postinst 2009-10-01
21:00:14.000000000 +0200
@@ -223,6 +223,16 @@
# stop debconf
db_stop
+# Those using dependency based boot sequencing and installing
+# monotone before version 0.44-2 would miss the runlevel 2 symlink.
+# Recover from this.
+if [ "$1" = "configure" ] && dpkg --compare-versions "$2" le "0.44-2" \
+ && [ ! -f /etc/rc2.d/[SK][0-9][0-9]monotone ] \
+ && [ -f /etc/rc3.d/K[0-9][0-9]monotone ]
+then
+ update-rc.d -f monotone remove
+fi
+
# dh_installdeb will replace this with shell code automatically
# generated by other debhelper scripts.
Happy hacking,
--
Petter Reinholdtsen
- [Monotone-debian] Bug#542287: monotone-server: Incorrect runlevels and dependencies in init.d script,
Petter Reinholdtsen <=