Hi Michael,
On Mon, May 09, 2005 at 09:31:19AM +0200, Michael Meskes wrote:
> On Thu, May 05, 2005 at 02:41:37PM -0700, Steve Langasek wrote:
> > I think we have to set a fairly high quality standard for packages whose
> > main purpose is to reboot your computer. :) Would you be willing to upload
> > a fixed package that includes the change for putting the startup script
> > later in the boot sequence?
> I just uploaded version 5.2.4-3 of the watchdog package. It moves the
> init script to S89 and also adds a PATH entry to that script fixing yet
> another bug. Please move this package to sarge.
--- watchdog-5.2.4/debian/postinst
+++ watchdog-5.2.4/debian/postinst
@@ -85,8 +85,18 @@
fi
fi
+#
+# remove old links
+#
+if dpkg --compare-versions "$2" lt 5.2.4-3
+then
+ if [ -L /etc/rc2.d/S10watchdog ]; then
+ update-rc.d -f watchdog remove
+ fi
+fi
+
# Not automatically added by dh_installinit (--noscripts)
-update-rc.d watchdog defaults 10 80 >/dev/null
+update-rc.d watchdog defaults 89 11 >/dev/null
#DEBHELPER#
Hmm, unfortunately this means that anyone who has fiddled any of the startup
symlinks for *other* runlevels is going to lose configuration state. :/ I
think in this case, it's perhaps best to not worry about upgrades;
presumably, anyone who was running watchdog in woody for the past years
isn't bothered by this bug. What do you think?
--
Steve Langasek
postmodern programmer
Attachment:
signature.asc
Description: Digital signature