Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:crameleon:LibertaCasa:Mail
solr
initrd.solr
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File initrd.solr of Package solr
#!/bin/sh # # chkconfig: - 50 50 # # Copyright (c) 2015 SUSE Linux GmbH Nuernberg, Germany. # # Author: Lars Vogdt # # # /etc/init.d/solr # # and symbolic its link # # /usr/sbin/rcsolr # # System startup script for nagios # ### BEGIN INIT INFO # Provides: solr # Required-Start: $local_fs $remote_fs $syslog $network # Required-Stop: $local_fs $remote_fs $syslog $network # Should-Start: $time sendmail xntpd $named cron # Should-Stop: sendmail # Default-Start: 3 5 # Default-Stop: 0 1 2 6 # Short-Description: Apache Solr Search Platform # Description: Starts and stops the Apache Solr Search # Daemon. Please remember to adapt /etc/solr.conf to # your needs before you start the daemon. ### END INIT INFO SOLR_BIN=__LIBDIR__/solr/solr.sh CONFIG=/etc/solr.conf . /etc/rc.status test -x "$SOLR_BIN" || { echo "$SOLR_BIN not installed or not executable."; if [ "$1" = "stop" ]; then exit 0; else exit 5; fi; } # Check for existence of needed config file test -r "$CONFIG" || { echo "$CONFIG not existing or readable."; if [ "$1" = "stop" ]; then exit 0; else exit 6; fi; } # Reset status of this service rc_reset resolve_instances() { if [ "$1" == "" ]; then INSTANCES="" for i in `cat $CONFIG`; do INSTANCES="$INSTANCES ${i%%:*}" done else INSTANCES=$1 fi } case "$1" in start) echo -n "Starting SOLR $2 " resolve_instances $2 if [ -n $INSTANCES ]; then for INSTANCE in $INSTANCES; do LINE=`grep "^$INSTANCE:" $CONFIG` $SOLR_BIN start `echo $LINE | sed -e's/:/ /g'` RETVAL=$? echo done rc_failed $RETVAL else echo "Error: could not find any instance definition." >&2 rc_failed fi rc_status -v ;; stop) echo -n "Stopping SOLR $2 " resolve_instances $2 if [ -n $INSTANCES ]; then for INSTANCE in $INSTANCES; do LINE=`grep "^$INSTANCE:" $CONFIG` $SOLR_BIN stop `echo $LINE | sed -e's/:/ /g'` RETVAL=$? done else echo "Error: could not find any instance definition." >&2 rc_failed fi rc_status -v ;; restart|reload|force-reload) $0 stop $2 $0 start $2 rc_status ;; status) echo -n "Checking for SOLR " checkproc $SOLR_BIN rc_status -v ;; *) echo $"Usage: $0 {start|stop|restart} [instance]" exit 1 esac rc_exit
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor