3 # skeleton example file to build /etc/init.d/ scripts.
4 # This file should be used to construct scripts for /etc/init.d.
6 # Written by Miquel van Smoorenburg <miquels@cistron.nl>.
7 # Modified for Debian GNU/Linux
8 # by Ian Murdock <imurdock@gnu.ai.mit.edu>.
10 # Version: @(#)skeleton 1.8 03-Mar-1998 miquels@cistron.nl
13 # Provides: indexdata-solr
14 # Required-Start: $network
15 # Required-Stop: $network
17 # Default-Start: 2 3 4 5
19 # Short-Description: Indexdata Cloud Solr (Solr with Zookeeper)
20 # Description: startes the services on port xxxx
25 DAEMON=/usr/share/masterkey/lui/solr4/zookeeper/zookeeper.sh
27 DESC="Index Data Services (SOLR Zookeeper)"
28 NAME=indexdata-solr-zookeeper
29 DEFAULT=/etc/default/indexdata-solr-zookeeper
30 if [ -f "$DEFAULT" ] ; then
34 # test -d $SERVICES || exit 0
40 for SERVICE in $SERVICES ; do
41 if [ -d "$SERVICE" ] ; then
42 echo "starting $SERVICE"
46 echo "No directory at $SERVICE"
51 for SERVICE in $SERVICES ; do
52 if [ -d "$SERVICE" ] ; then
53 echo "Stopping $SERVICE"
57 echo "No directory at $SERVICE"
62 for SERVICE in $SERVICES ; do
63 if [ -d "$SERVICE" ] ; then
64 echo "checking $SERVICE"
68 echo "No directory at $SERVICE"
74 # If the daemon can reload its config files on the fly
75 # for example by sending it SIGHUP, do it here.
77 # If the daemon responds to changes in its config file
78 # directly anyway, make this a do-nothing entry.
80 # echo "Reloading $DESC configuration files."
81 # start-stop-daemon --stop --signal 1 --quiet --pidfile \
82 # /var/run/$NAME.pid --exec $DAEMON
86 # If the "reload" option is implemented, move the "force-reload"
87 # option to the "reload" entry above. If not, "force-reload" is
88 # just the same as "restart".
90 echo "Restarting $DESC: "
91 for srv in $SERVICES ; do
97 # echo "Usage: $N {start|stop|restart|reload|force-reload}" >&2
98 echo "Usage: $N {start|stop|restart|force-reload}" >&2