[Pkg-erlang-commits] r1131 - couchdb/trunk/debian
sbisbee-guest at alioth.debian.org
sbisbee-guest at alioth.debian.org
Sat Nov 21 22:14:04 UTC 2009
Author: sbisbee-guest
Date: 2009-11-21 22:14:04 +0000 (Sat, 21 Nov 2009)
New Revision: 1131
Added:
couchdb/trunk/debian/preinst
Modified:
couchdb/trunk/debian/changelog
Log:
Fixing beam process bug when upgrading from 0.9.0-2.
Modified: couchdb/trunk/debian/changelog
===================================================================
--- couchdb/trunk/debian/changelog 2009-11-12 06:02:07 UTC (rev 1130)
+++ couchdb/trunk/debian/changelog 2009-11-21 22:14:04 UTC (rev 1131)
@@ -34,8 +34,12 @@
* Updated debian/postrm, rmdir didn't like that its target directories
weren't non-empty (despite passed args), causing errors and failing to
remove directories. Also removed the version partitioning cases.
+ * Created debian/preinst, now we make sure that couchdb isn't running any
+ beam processes on upgrade. Upgrading from 0.9.0-2 was leaving old code in a
+ running beam process, so you were running 0.9.0 couchdb but had 0.10.0 code
+ installed until you killed the process
- -- Sam Bisbee <sbisbee at computervip.com> Thu, 12 Nov 2009 00:55:05 -0500
+ -- Sam Bisbee <sbisbee at computervip.com> Sat, 21 Nov 2009 17:10:39 -0500
couchdb (0.9.0-2) unstable; urgency=low
Added: couchdb/trunk/debian/preinst
===================================================================
--- couchdb/trunk/debian/preinst (rev 0)
+++ couchdb/trunk/debian/preinst 2009-11-21 22:14:04 UTC (rev 1131)
@@ -0,0 +1,29 @@
+#!/bin/sh -e
+# by Sam Bisbee <sbisbee at computervip.com> Copyright 2009
+# The right to copy, distribute, and modify this file in any medium is released
+# to anyone without royalty, provided that this notice and the copyright notice
+# is preserved.
+
+case "$1" in
+ install)
+ ;;
+
+ upgrade)
+ #Prevent old couchdb code from running in a couchdb process and surviving
+ #through to our new version. Assumes that it's running as the default
+ #couchdb user.
+ killall -q -u couchdb beam > /dev/null || true
+ ;;
+
+ abort-upgrade)
+ ;;
+
+ *)
+ echo "preinst called with unknown argument $1" >&2
+ exit 1
+ ;;
+esac
+
+#DEBHELPER#
+
+exit 0
More information about the Pkg-erlang-commits
mailing list