6d8f2d7170
databases/cassandra3: Update to 3.11.10 Changes: https://gitbox.apache.org/repos/asf?p=cassandra.git;a=blob_plain;f=CHANGES.txt;hb=refs/tags/cassandra-3.11.10 PR: 253312 Submitted by: Angelo Polo <language.devel AT gmail DOT com> (maintainer) Approved by: portmgr blanket
42 lines
908 B
Bash
42 lines
908 B
Bash
#!/bin/sh
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
# PROVIDE: cassandra
|
|
# REQUIRE: LOGIN
|
|
# KEYWORD: shutdown
|
|
#
|
|
# Be sure to configure full settings in %%ETCDIR%% prior to enabling daemon.
|
|
#
|
|
# Add the following lines to /etc/rc.conf or /etc/.conf.local to
|
|
# enable the Cassandra daemon:
|
|
# cassandra_enable: Set to "YES" to enable the daemon.
|
|
# cassandra_user: The user under which to run the daemon.
|
|
# Defaults to "cassandra".
|
|
|
|
. /etc/rc.subr
|
|
|
|
name=cassandra
|
|
rcvar=cassandra_enable
|
|
desc="Cassandra daemon"
|
|
|
|
load_rc_config $name
|
|
|
|
: ${cassandra_enable:=NO}
|
|
: ${cassandra_user:=cassandra}
|
|
|
|
pidfile=/var/run/cassandra/cassandra.pid
|
|
|
|
command=/usr/sbin/daemon
|
|
command_args="-frP ${pidfile} %%PREFIX%%/bin/cassandra -f"
|
|
start_precmd="${name}_prestart"
|
|
|
|
cassandra_prestart()
|
|
{
|
|
export JAVA_HOME=%%JAVA_HOME%%
|
|
install -d -o ${cassandra_user} /var/run/cassandra
|
|
install -d -o ${cassandra_user} /var/log/cassandra
|
|
}
|
|
|
|
run_rc_command "$1"
|