Lines 24-38
Link Here
|
24 |
# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH |
24 |
# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH |
25 |
# DAMAGE. |
25 |
# DAMAGE. |
26 |
|
26 |
|
|
|
27 |
# $FreeBSD$ |
28 |
# |
27 |
# PROVIDE: cassandra |
29 |
# PROVIDE: cassandra |
28 |
# REQUIRE: LOGIN |
30 |
# REQUIRE: LOGIN |
29 |
# KEYWORD: shutdown |
31 |
# KEYWORD: shutdown |
30 |
# |
32 |
# |
31 |
# $FreeBSD: head/databases/cassandra/files/cassandra.in 319455 2013-05-31 01:32:45Z bdrewery $ |
|
|
32 |
|
33 |
|
33 |
. /etc/rc.subr |
34 |
. /etc/rc.subr |
34 |
|
35 |
|
35 |
name="cassandra" |
36 |
name=cassandra |
36 |
rcvar=cassandra_enable |
37 |
rcvar=cassandra_enable |
37 |
load_rc_config $name |
38 |
load_rc_config $name |
38 |
|
39 |
|
Lines 44-50
Link Here
|
44 |
command=%%DATADIR%%/bin/cassandra |
45 |
command=%%DATADIR%%/bin/cassandra |
45 |
command_args="-p /var/run/cassandra.pid >/dev/null" |
46 |
command_args="-p /var/run/cassandra.pid >/dev/null" |
46 |
stop_precmd="${name}_prestop" |
47 |
stop_precmd="${name}_prestop" |
47 |
sig_stop="KILL" |
48 |
sig_stop=KILL |
48 |
|
49 |
|
49 |
procname="%%LOCALBASE%%/openjdk7/bin/java" |
50 |
procname="%%LOCALBASE%%/openjdk7/bin/java" |
50 |
pidfile=/var/run/cassandra.pid |
51 |
pidfile=/var/run/cassandra.pid |
Lines 59-65
Link Here
|
59 |
export JAVA_VENDOR=openjdk |
60 |
export JAVA_VENDOR=openjdk |
60 |
export JAVA_VERSION=1.7 |
61 |
export JAVA_VERSION=1.7 |
61 |
|
62 |
|
62 |
cassandra_prestop() { |
63 |
cassandra_prestop() |
|
|
64 |
{ |
63 |
$CASSANDRA_HOME/bin/nodetool -h localhost drain |
65 |
$CASSANDRA_HOME/bin/nodetool -h localhost drain |
64 |
return 0 |
66 |
return 0 |
65 |
} |
67 |
} |