Changeset View
Changeset View
Standalone View
Standalone View
databases/neo4j/files/neo4j.in
Show All 14 Lines | |||||
name=neo4j | name=neo4j | ||||
rcvar=neo4j_enable | rcvar=neo4j_enable | ||||
desc="Graphing database" | desc="Graphing database" | ||||
load_rc_config $name | load_rc_config $name | ||||
: ${neo4j_enable:=NO} | : ${neo4j_enable:=NO} | ||||
command=%%PREFIX%%/libexec/neo4j/neo4j | command=%%PREFIX%%/bin/neo4j | ||||
start_cmd="$command start" | start_cmd="$command start" | ||||
start_precmd=neo4j_prestart | start_precmd=neo4j_prestart | ||||
stop_cmd="$command stop" | stop_cmd="$command stop" | ||||
status_cmd="$command status" | status_cmd="$command status" | ||||
neo4j_prestart() | neo4j_prestart() | ||||
{ | { | ||||
NEO4J_DATA=%%DATADIR%% | NEO4J_DATA=%%DATADIR%% | ||||
NEO4J_LIB=%%PREFIX%%/lib/neo4j | NEO4J_LIB=%%PREFIX%%/neo4j/lib | ||||
NEO4J_LOGS=/var/log/neo4j | NEO4J_LOGS=/var/log/neo4j | ||||
NEO4J_PLUGINS=${NEO4J_LIB}/plugins | NEO4J_PLUGINS=${NEO4J_LIB}/plugins | ||||
NEO4J_RUN=/var/run/neo4j | NEO4J_RUN=/var/run/neo4j | ||||
mkdir -p ${NEO4J_LOGS} ${NEO4J_RUN} | mkdir -p ${NEO4J_LOGS} ${NEO4J_RUN} | ||||
} | } | ||||
run_rc_command $1 | run_rc_command $1 |