Skip to content

Commit

Permalink
Merge pull request ezsystems#48 from gggeek/issue_15961
Browse files Browse the repository at this point in the history
Issue 15961 Thanks Gaetano
  • Loading branch information
paulborgermans committed May 26, 2012
2 parents 16aa798 + 0598df7 commit 2f4b121
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 5 deletions.
18 changes: 15 additions & 3 deletions bin/scripts/debian/solr
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@
#
# Usage:
#
# Set the correct SOLR_HOME value, and copy this file to /etc/init.d
# Symlink to /etc/init.d/solr to /etc/rc3.d/S70solr and /etc/rc5.d/S70solr
# Set the correct SOLR_HOME value, and copy this file to /etc/init.d, then
# - either run "update-rc.d solr defaults"
# - or symlink by hand /etc/init.d/solr to /etc/rc<n>.d/S70solr and /etc/rc<n>.d/K70solr
#
# Example:
# cp solr /etc/init.d/solr
Expand All @@ -14,7 +15,18 @@
# cd /etc/rc5.d && ln -s ../init.d/solr S70solr
# cd /etc/rc2.d && ln -s ../init.d/solr K70solr
# cd /etc/rc5.d && ln -s ../init.d/solr K70solr

#
### BEGIN INIT INFO
# Provides: solr
# Required-Start: $local_fs $remote_fs
# Required-Stop: $local_fs $remote_fs
# Should-Start: $all
# Should-Stop: $all
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start/stop Solr
# Description: Start/stop Solr
### END INIT INFO

. /lib/lsb/init-functions

Expand Down
11 changes: 9 additions & 2 deletions bin/scripts/rhel/solr
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@
#
# Usage:
#
# Set the correct SOLR_HOME value, and copy this file to /etc/init.d
# Symlink to /etc/init.d/solr to /etc/rc3.d/S70solr and /etc/rc5.d/S70solr
# Set the correct SOLR_HOME value, and copy this file to /etc/init.d, then
# - either run chkconfig --add solr, or
# - symlink to /etc/init.d/solr to /etc/rc3.<n>/S70solr and /etc/rc5.<n>/k70solr
#
# Example:
# cp solr /etc/init.d/solr
Expand All @@ -14,6 +15,12 @@
# cd /etc/rc5.d && ln -s ../init.d/solr S70solr
# cd /etc/rc3.d && ln -s ../init.d/solr K70solr
# cd /etc/rc5.d && ln -s ../init.d/solr K70solr
#
#
# chkconfig: 2345 64 36
# description: SOLR indexing server
# processname: solr
# pidfile: /var/run/solr.pid

DESC="Solr indexing server"
NAME=solr
Expand Down

0 comments on commit 2f4b121

Please sign in to comment.