Changeset View
Changeset View
Standalone View
Standalone View
textproc/apache-solr/files/solr.in
Show First 20 Lines • Show All 53 Lines • ▼ Show 20 Lines | solr_status () | ||||
su -m solr -c "${command} status" | su -m solr -c "${command} status" | ||||
} | } | ||||
# add %%LOCALBASE%%/bin to path | # add %%LOCALBASE%%/bin to path | ||||
export PATH=$PATH:%%LOCALBASE%%/bin | export PATH=$PATH:%%LOCALBASE%%/bin | ||||
# let the start script read some custom settings | # let the start script read some custom settings | ||||
export SOLR_INCLUDE=/usr/local/etc/solr.in.sh | export SOLR_INCLUDE=/usr/local/etc/solr.in.sh | ||||
required_files="${solr_instance}/solr.xml /usr/local/etc/solr.in.sh ${solr_instance}/log4j.properties" | required_files="${solr_instance}/solr.xml /usr/local/etc/solr.in.sh" | ||||
command=%%PREFIX%%/solr/bin/solr | command=%%PREFIX%%/solr/bin/solr | ||||
start_cmd=solr_start | start_cmd=solr_start | ||||
stop_cmd=solr_stop | stop_cmd=solr_stop | ||||
status_cmd=solr_status | status_cmd=solr_status | ||||
run_rc_command "$1" | run_rc_command "$1" |