From dd6aa991b33caef4c1b6f2b5bc5ef3237cb87865 Mon Sep 17 00:00:00 2001 From: Martin Langhoff Date: Wed, 17 May 2017 10:40:52 +0200 Subject: [PATCH] RPM: Add init info stanzas, change startup ordering patch by Martin A. Langhoff; reviewed by Stefan Podkowinski for CASSANDRA-13493 --- redhat/cassandra | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/redhat/cassandra b/redhat/cassandra index a4aaaa5685..677ff8c7ff 100644 --- a/redhat/cassandra +++ b/redhat/cassandra @@ -3,11 +3,24 @@ # /etc/init.d/cassandra # # Startup script for Cassandra -# -# chkconfig: 2345 20 80 +# +# chkconfig: 2345 80 20 # description: Starts and stops Cassandra # pidfile: /var/run/cassandra/cassandra.pid +### BEGIN INIT INFO +# Provides: cassandra +# 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 +# Description: Cassandra is a distributed (peer-to-peer) system for +# the management and storage of structured data. +### END INIT INFO + . /etc/rc.d/init.d/functions export CASSANDRA_HOME=/usr/share/cassandra