alpha-quadrant/www-apps/solr/files/solr.init.d

32 lines
524 B
D
Raw Normal View History

#!/sbin/runscript
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
start_stop_daemon_args="-u solr:solr"
2015-05-06 10:14:21 +02:00
pidfile="/run/solr/solr-${SOLR_PORT:-8983}.pid"
command="/bin/solr"
2015-05-06 10:14:21 +02:00
command_args="start -p ${SOLR_PORT:-8983} ${SOLR_OPTS}"
extra_commands="status"
depend() {
need net
use logger
}
start_pre() {
2015-05-06 10:14:21 +02:00
rm -rf ${SOLR_TMPDIR}
mkdir ${SOLR_TMPDIR}
chown solr:solr ${SOLR_TMPDIR}
}
status() {
/bin/solr status
}
stop() {
/bin/solr stop
}