summaryrefslogtreecommitdiff
path: root/packaging/debs
diff options
context:
space:
mode:
authorMatthias Radestock <matthias@rabbitmq.com>2011-03-05 17:57:27 +0000
committerMatthias Radestock <matthias@rabbitmq.com>2011-03-05 17:57:27 +0000
commit3fd05897f3a1fa4a98d5d046b2dcc297667e65d9 (patch)
treec945d411b3a11a03f90b05d91599dfd1f3239803 /packaging/debs
parent6b4b2718bac84ae918ae311b9c9f9ab9334a70ea (diff)
parentf8ade16bfce1906d0c318a04875364673604a11d (diff)
downloadrabbitmq-server-git-3fd05897f3a1fa4a98d5d046b2dcc297667e65d9.tar.gz
merge bug23875 into default
Diffstat (limited to 'packaging/debs')
-rw-r--r--packaging/debs/Debian/Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/packaging/debs/Debian/Makefile b/packaging/debs/Debian/Makefile
index d937fbb2eb..31979a8e01 100644
--- a/packaging/debs/Debian/Makefile
+++ b/packaging/debs/Debian/Makefile
@@ -22,8 +22,12 @@ package: clean
tar -zxvf $(DEBIAN_ORIG_TARBALL)
cp -r debian $(UNPACKED_DIR)
cp $(COMMON_DIR)/* $(UNPACKED_DIR)/debian/
+# Debian and descendants differ from most other distros in that
+# runlevel 2 should start network services.
sed -i \
-e 's|^LOCK_FILE=.*$$|LOCK_FILE=|' \
+ -e 's|^\(# Default-Start:\).*$$|\1 2 3 4 5|' \
+ -e 's|^\(# Default-Stop:\).*$$|\1 0 1 6|' \
$(UNPACKED_DIR)/debian/rabbitmq-server.init
sed -i -e 's|@SU_RABBITMQ_SH_C@|su rabbitmq -s /bin/sh -c|' \
$(UNPACKED_DIR)/debian/rabbitmq-script-wrapper