public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Benedikt Boehm (hollow)" <hollow@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] gentoo-x86 commit in app-admin/chef-solr/files/initd: chef-solr-indexer chef-solr
Date: Sat,  3 Jul 2010 12:54:17 +0000 (UTC)	[thread overview]
Message-ID: <20100703125417.7B3E52C5F4@corvid.gentoo.org> (raw)

hollow      10/07/03 12:54:17

  Added:                chef-solr-indexer chef-solr
  Log:
  initial ebuild, thanks to Gábor Vészi
  (Portage version: 2.2_rc67/cvs/Linux i686)

Revision  Changes    Path
1.1                  app-admin/chef-solr/files/initd/chef-solr-indexer

file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-admin/chef-solr/files/initd/chef-solr-indexer?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-admin/chef-solr/files/initd/chef-solr-indexer?rev=1.1&content-type=text/plain

Index: chef-solr-indexer
===================================================================
#!/sbin/runscript
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2

depend() {
	need net chef-solr
}

CHEF_SOLR_INDEXER_BINARY=${CHEF_SOLR_INDEXER_BINARY:-/usr/bin/chef-solr-indexer}
CHEF_SOLR_INDEXER_PIDFILE=${CHEF_SOLR_INDEXER_PIDFILE:-/var/run/chef/solr-indexer.pid}
CHEF_SOLR_INDEXER_LOGFILE=${CHEF_SOLR_INDEXER_LOGFILE:-/var/log/chef/solr-indexer.log}
CONFIGFILE=${CONFIGFILE:-/etc/chef/solr.rb}
CHEF_USER=${CHEF_USER:-chef}
CHEF_GROUP=${CHEF_GROUP:-chef}

# TODO: this could be nicer
DEFAULT_CHEF_DIRS=( /etc/chef /var/lib/chef /var/log/chef /var/run/chef )
CHEF_DIRS=( ${CHEF_DIRS[@]:-${DEFAULT_CHEF_DIRS[@]}} )

fix_dir_owners() {
	for DIR in ${CHEF_DIRS[@]} ; do chown ${CHEF_USER}:${CHEF_GROUP} ${DIR} ; done
}

start() {
	ebegin "Starting Chef SOLR indexer"
	fix_dir_owners
	start-stop-daemon --start --quiet --chuid ${CHEF_USER}:${CHEF_GROUP} \
		--pidfile ${CHEF_SOLR_INDEXER_PIDFILE} --exec ${CHEF_SOLR_INDEXER_BINARY} \
		-- -d -P ${CHEF_SOLR_INDEXER_PIDFILE} -L ${CHEF_SOLR_INDEXER_LOGFILE} \
		-c ${CONFIGFILE} ${CHEF_SOLR_INDEXER_OPTS}
	eend $?
}

stop() {
	ebegin "Shutting down Chef SOLR indexer"
	start-stop-daemon --stop --quiet --pidfile ${CHEF_SOLR_INDEXER_PIDFILE}
	eend $?
}



1.1                  app-admin/chef-solr/files/initd/chef-solr

file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-admin/chef-solr/files/initd/chef-solr?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-admin/chef-solr/files/initd/chef-solr?rev=1.1&content-type=text/plain

Index: chef-solr
===================================================================
#!/sbin/runscript
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2

depend() {
	need net rabbitmq
	after couchdb
}

CHEF_SOLR_BINARY=${CHEF_SOLR_BINARY:-/usr/bin/chef-solr}
CHEF_SOLR_PIDFILE=${CHEF_SOLR_PIDFILE:-/var/run/chef/solr.pid}
CHEF_SOLR_LOGFILE=${CHEF_SOLR_LOGFILE:-/var/log/chef/solr.log}
CONFIGFILE=${CONFIGFILE:-/etc/chef/solr.rb}
CHEF_USER=${CHEF_USER:-chef}
CHEF_GROUP=${CHEF_GROUP:-chef}

# TODO: this could be nicer
DEFAULT_CHEF_DIRS=( /etc/chef /var/lib/chef /var/log/chef /var/run/chef )
CHEF_DIRS=( ${CHEF_DIRS[@]:-${DEFAULT_CHEF_DIRS[@]}} )

fix_dir_owners() {
	for DIR in ${CHEF_DIRS[@]} ; do chown ${CHEF_USER}:${CHEF_GROUP} ${DIR} ; done
}

start() {
	ebegin "Starting Chef SOLR"
	fix_dir_owners
	start-stop-daemon --start --quiet --chuid ${CHEF_USER}:${CHEF_GROUP} \
		--pidfile ${CHEF_SOLR_PIDFILE} --name java --exec \
		${CHEF_SOLR_BINARY} -- -d -P ${CHEF_SOLR_PIDFILE} -c ${CONFIGFILE} \
		-L ${CHEF_SOLR_LOGFILE} ${CHEF_SOLR_OPTS} > /dev/null
	eend $?
}

stop() {
	ebegin "Shutting down Chef SOLR"
	start-stop-daemon --stop --quiet --pidfile ${CHEF_SOLR_PIDFILE}
	eend $?
}






             reply	other threads:[~2010-07-03 12:54 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-07-03 12:54 Benedikt Boehm (hollow) [this message]
  -- strict thread matches above, loose matches on Subject: below --
2010-07-04 10:13 [gentoo-commits] gentoo-x86 commit in app-admin/chef-solr/files/initd: chef-solr-indexer chef-solr Benedikt Boehm (hollow)
2011-12-31 20:07 Christian Ruppert (idl0r)

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20100703125417.7B3E52C5F4@corvid.gentoo.org \
    --to=hollow@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox