summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDiego Elio Pettenò <flameeyes@gentoo.org>2012-06-21 15:08:51 +0000
committerDiego Elio Pettenò <flameeyes@gentoo.org>2012-06-21 15:08:51 +0000
commitff9bdace3301d0fc3bd4cb1df8e75bc8effe4c3b (patch)
tree69094bf9d0ec66ec066b03735d37b8d1e42a829f /sys-cluster/gearmand/files
parentStable for HPPA (bug #422673). (diff)
downloadgentoo-2-ff9bdace3301d0fc3bd4cb1df8e75bc8effe4c3b.tar.gz
gentoo-2-ff9bdace3301d0fc3bd4cb1df8e75bc8effe4c3b.tar.bz2
gentoo-2-ff9bdace3301d0fc3bd4cb1df8e75bc8effe4c3b.zip
Remove old and fix append-cppflags.
(Portage version: 2.2.0_alpha110/cvs/Linux x86_64)
Diffstat (limited to 'sys-cluster/gearmand/files')
-rw-r--r--sys-cluster/gearmand/files/gearmand.init.d92
1 files changed, 0 insertions, 92 deletions
diff --git a/sys-cluster/gearmand/files/gearmand.init.d b/sys-cluster/gearmand/files/gearmand.init.d
deleted file mode 100644
index 50414a77d45b..000000000000
--- a/sys-cluster/gearmand/files/gearmand.init.d
+++ /dev/null
@@ -1,92 +0,0 @@
-#!/sbin/runscript
-# Copyright 2009-2010 Pavel Stratil, senbonzakura.eu
-# Distributed under the terms of the GNU General Public License v2
-
-depend() {
- use localmount
-
- case $PERSISTENT in
- drizzle)
- use drizzle
- ;;
- memcache)
- use memcache
- ;;
- mysql)
- use mysql
- ;;
- postgre)
- use postgresql
- ;;
- *)
- ;;
- esac
-}
-
-start() {
- case ${PERSISTENT:-none} in
- drizzle|mysql)
- GEARMAND_PARAMS="${GEARMAND_PARAMS} -q libdrizzle"
- [ ${PERSISTENT_HOST} ] && GEARMAND_PARAMS="${GEARMAND_PARAMS} --libdrizzle-host=${PERSISTENT_HOST}"
- [ ${PERSISTENT_USER} ] && GEARMAND_PARAMS="${GEARMAND_PARAMS} --libdrizzle-user=${PERSISTENT_USER}"
- [ ${PERSISTENT_PASS} ] && GEARMAND_PARAMS="${GEARMAND_PARAMS} --libdrizzle-password=${PERSISTENT_PASS}"
- [ ${PERSISTENT_DB} ] && GEARMAND_PARAMS="${GEARMAND_PARAMS} --libdrizzle-db=${PERSISTENT_DB}"
- [ ${PERSISTENT_TABLE} ] && GEARMAND_PARAMS="${GEARMAND_PARAMS} --libdrizzle-table=${PERSISTENT_TABLE}"
- [ ${PERSISTENT_PORT} ] && GEARMAND_PARAMS="${GEARMAND_PARAMS} --libdrizzle-port=${PERSISTENT_PORT}"
- [ ${PERSISTENT_SOCKET} ] && GEARMAND_PARAMS="${GEARMAND_PARAMS} --libdrizzle-uds=${PERSISTENT_SOCKET}"
- [ ${PERSISTENT} == "mysql" ] && GEARMAND_PARAMS="${GEARMAND_PARAMS} --libdrizzle-mysql"
- ;;
- memcache)
- [ ${PERSISTENT_SERVERLIST} ] && GEARMAND_PARAMS="${GEARMAND_PARAMS} -q libmemcached --libmemcached-servers=${PERSISTENT_SERVERLIST}"
- ;;
- postgre)
- GEARMAND_PARAMS="${GEARMAND_PARAMS} -q libpq"
- [ ${PERSISTENT_HOST} ] && GEARMAND_PARAMS="${GEARMAND_PARAMS} --libpq-host=${PERSISTENT_HOST}"
- [ ${PERSISTENT_USER} ] && GEARMAND_PARAMS="${GEARMAND_PARAMS} --libpq-user=${PERSISTENT_USER}"
- [ ${PERSISTENT_PASS} ] && GEARMAND_PARAMS="${GEARMAND_PARAMS} --libpq-password=${PERSISTENT_PASS}"
- [ ${PERSISTENT_DB} ] && GEARMAND_PARAMS="${GEARMAND_PARAMS} --libpq-dbname=${PERSISTENT_DB}"
- [ ${PERSISTENT_PORT} ] && GEARMAND_PARAMS="${GEARMAND_PARAMS} --libpq-port=${PERSISTENT_PORT}"
- [ ${PERSISTENT_TABLE} ] && ewarn "Libpq doesn't recognise 'table' parameter."
- [ ${PERSISTENT_SOCKET} ] && ewarn "Libpq doesn't recognise 'socket' parameter. If no host is set, it automatically falls back to a socket."
- ;;
- tokyocabinet)
- GEARMAND_PARAMS="${GEARMAND_PARAMS} -q libtokyocabinet --libtokyocabinet-file=${PERSISTENT_FILE}"
- ;;
- sqlite)
- GEARMAND_PARAMS="${GEARMAND_PARAMS} -q libsqlite3 --libsqlite3-db=${PERSISTENT_FILE}"
- ;;
- none)
- ;;
- *)
- eerror "Wrong persistent queue store setting in /etc/conf.d/gearmand."
- return 1
- ;;
- esac
-
-
- if [ ! -d /var/run/gearmand ] ; then
- mkdir -p /var/run/gearmand
- chown gearmand:nogroup /var/run/gearmand
- chmod 0755 /var/run/gearmand
- fi
-
- if [ ! -d /var/log/gearmand ] ; then
- mkdir -p /var/log/gearmand
- chown gearmand:nogroup /var/log/gearmand
- chmod 0755 /var/log/gearmand
- fi
-
- ebegin "Starting ${SVCNAME}"
- start-stop-daemon --pidfile /var/run/gearmand/gearmand.pid --start \
- --exec /usr/sbin/gearmand -- --pid-file=/var/run/gearmand/gearmand.pid \
- --user=gearmand --daemon \
- --log-file=/var/log/gearmand/gearmand.log ${GEARMAND_PARAMS}
- eend $?
-}
-
-stop() {
- ebegin "Stopping ${SVCNAME}"
- start-stop-daemon --pidfile /var/run/gearmand/gearmand.pid --stop \
- --exec /usr/sbin/gearmand
- eend $?
-}