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=/home/dennis/proj/lui-solr/etc/init.d/zookeeper.sh
26 SERVICES="/home/indexdata/solr-4.4.0/example/"
27 DESC="Index Data Services (SOLR Zookeeper)"
29 DEFAULT=/etc/default/indexdata-solr-zookeeper
30 if [ -f "$DEFAULT" ] ; then
34 # test -d $SERVICES || exit 0
40 for srv in $SERVICES ; do
46 echo "Stopping $DESC."
47 for srv in $SERVICES ; do
53 echo "Checking status for $DESC."
54 for srv in $SERVICES ; do
61 # If the daemon can reload its config files on the fly
62 # for example by sending it SIGHUP, do it here.
64 # If the daemon responds to changes in its config file
65 # directly anyway, make this a do-nothing entry.
67 # echo "Reloading $DESC configuration files."
68 # start-stop-daemon --stop --signal 1 --quiet --pidfile \
69 # /var/run/$NAME.pid --exec $DAEMON
73 # If the "reload" option is implemented, move the "force-reload"
74 # option to the "reload" entry above. If not, "force-reload" is
75 # just the same as "restart".
77 echo "Restarting $DESC: "
78 for srv in $SERVICES ; do
84 # echo "Usage: $N {start|stop|restart|reload|force-reload}" >&2
85 echo "Usage: $N {start|stop|restart|force-reload}" >&2