Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 1 Sep 2010 16:18:52 GMT
From:      Kevin Way <kevin.way@insidesystems.net>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/150194: There is no startup script for cassandra.
Message-ID:  <201009011618.o81GIqLF019669@www.freebsd.org>
Resent-Message-ID: <201009011620.o81GK1RF023168@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         150194
>Category:       ports
>Synopsis:       There is no startup script for cassandra.
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Wed Sep 01 16:20:01 UTC 2010
>Closed-Date:
>Last-Modified:
>Originator:     Kevin Way
>Release:        8.1-p0 amd64
>Organization:
Inside Systems, Inc.
>Environment:
FreeBSD orca.jailhosts.massive.io 8.1-RELEASE FreeBSD 8.1-RELEASE #0: Tue Aug 17 13:42:54 UTC 2010     root@:/usr/obj/usr/src/sys/JAILHOST  amd64

>Description:
There is no rc.d script for cassandra.
>How-To-Repeat:

>Fix:
/usr/local/etc/rc.d/cassandra

#!/bin/sh

# PROVIDE: cassandra
# REQUIRE: LOGIN
# BEFORE:  securelevel
# KEYWORD: shutdown

# Add the following lines to /etc/rc.conf to enable `cassandra':
#
# cassandra_enable="YES"
# cassandra_flags=""
#
# See cassandra(1) for cassandra_flags
#

. /etc/rc.subr

name="cassandra"
procname="java"
rcvar=`set_rcvar`

command="/usr/local/share/cassandra/bin/cassandra"
pidfile="/var/run/$name.pid"
command_args="-p ${pidfile}"

# read configuration and set defaults
load_rc_config "$name"
: ${cassandra_enable="NO"}

run_rc_command "$1"

>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201009011618.o81GIqLF019669>