tags 468853 + patch pending quit On Sun, Mar 02, 2008 at 10:41:58AM +0000, Jamie Thompson wrote: > Gerrit Pape wrote: >> Yes, but there're several different versions out there from which the >> upgrade might be done. From what version are you upgrading from? And >> what does 'grep ^SV /etc/inittab' say? > > SV:123456:respawn:/usr/bin/svscanboot > > As for my old version, I'm guessing the number before the colon is the epoch > that you changed, so I suspect that this the info you need from my dpkg.log? > 2008-03-01 22:22:32 upgrade daemontools 0.76-9 1:0.76-1
Thanks, this looks like the FHS-version of the package created through the daemontools-installer package from non-free. I'll add an update path from that version in -2. Regards, Gerrit. diff --git a/debian/daemontools-run.postinst b/debian/daemontools-run.postinst index 1e6603a..ff234d7 100644 --- a/debian/daemontools-run.postinst +++ b/debian/daemontools-run.postinst @@ -36,6 +36,16 @@ if test -z "$2" || dpkg --compare-versions "$2" lt '1:0.76'; then kill -s HUP 1 sleep 1 fi + # update from daemontools-installer (fhs version) + if grep -q 'SV:123456:respawn:/usr/bin/svscanboot' /etc/inittab; then + echo 'Removing SV inittab entry...' + rm -f /etc/inittab'{new}' + sed -e '/SV:123456:respawn:\/usr\/bin\/svscanboot/d' \ + /etc/inittab > /etc/inittab'{new}' + mv -f /etc/inittab'{new}' /etc/inittab + kill -s HUP 1 + sleep 1 + fi fi if test -z "$2"; then # not upgrading -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]