From 290c6f7d6fddaff6fd80e5537cc961f5e76f42cf Mon Sep 17 00:00:00 2001 From: Brandon Williams Date: Thu, 12 May 2011 20:46:14 +0000 Subject: [PATCH] Start/stop cassandra after more important services such as mdadm in debian packaging. Patch by Paul Cannon, reviewed by brandonwilliams for CASSANDRA-2481 git-svn-id: https://svn.apache.org/repos/asf/cassandra/branches/cassandra-0.7@1102456 13f79535-47bb-0310-9956-ffa450edef68 --- debian/init | 6 ++++-- debian/rules | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/debian/init b/debian/init index 709bb6a455..ef3430c0fe 100644 --- a/debian/init +++ b/debian/init @@ -1,8 +1,10 @@ #! /bin/sh ### BEGIN INIT INFO # Provides: cassandra -# Required-Start: $remote_fs -# Required-Stop: $remote_fs +# Required-Start: $remote_fs $network $named $time +# Required-Stop: $remote_fs $network $named $time +# Should-Start: ntp mdadm +# Should-Stop: ntp mdadm # Default-Start: 2 3 4 5 # Default-Stop: 0 1 6 # Short-Description: distributed storage system for structured data diff --git a/debian/rules b/debian/rules index da4cd705b0..9d32d262bd 100755 --- a/debian/rules +++ b/debian/rules @@ -46,7 +46,7 @@ binary-indep: build install dh_testdir dh_testroot dh_installchangelogs - dh_installinit + dh_installinit -u'start 50 2 3 4 5 . stop 50 0 1 6' dh_installdocs README.txt CHANGES.txt NEWS.txt dh_compress dh_fixperms