Permalink
Browse files

remove obsolete startup method; closes #100

  • Loading branch information...
1 parent 9020d9a commit beefa83b822f753cf51e421765e750a867780231 @kr kr committed Apr 15, 2012
Showing with 0 additions and 163 deletions.
  1. +0 −135 adm/sysv/beanstalkd.init
  2. +0 −28 adm/sysv/beanstalkd.sysconfig
View
@@ -1,135 +0,0 @@
-#!/bin/sh
-#
-# beanstalkd - a simple, fast workqueue service
-#
-# chkconfig: - 57 47
-# description: a simple, fast workqueue service
-# processname: beanstalkd
-# config: /etc/sysconfig/beanstalkd
-#
-
-### BEGIN INIT INFO
-# Provides: beanstalkd
-# Required-Start: $local_fs $network $remote_fs
-# Required-Stop: $local_fs $network $remote_fs
-# Short-Description: start and stop beanstalkd
-# Description: a simple, fast workqueue service
-### END INIT INFO
-
-# Source function library.
-. /etc/rc.d/init.d/functions
-
-# Source networking configuration.
-. /etc/sysconfig/network
-
-# Check that networking is up.
-[ "$NETWORKING" = "no" ] && exit
-exec="/usr/bin/beanstalkd"
-prog=$(basename $exec)
-
-# default options, overruled by items in sysconfig
-BEANSTALKD_ADDR=0.0.0.0
-BEANSTALKD_PORT=11300
-BEANSTALKD_USER=beanstalkd
-
-[ -e /etc/sysconfig/beanstalkd ] && . /etc/sysconfig/beanstalkd
-
-lockfile=/var/lock/subsys/beanstalkd
-
-start() {
- [ -x $exec ] || exit 5
- echo -n $"Starting $prog: "
- # if not running, start it up here, usually something like "daemon $exec"
- options="-l ${BEANSTALKD_ADDR} -p ${BEANSTALKD_PORT} -u ${BEANSTALKD_USER}"
- if [ "${BEANSTALKD_MAX_JOB_SIZE}" != "" ]; then
- options="${options} -z ${BEANSTALKD_MAX_JOB_SIZE}"
- fi
-
- if [ "${BEANSTALKD_BINLOG_DIR}" != "" ]; then
- if [ ! -d "${BEANSTALKD_BINLOG_DIR}" ]; then
- echo "Creating binlog directory (${BEANSTALKD_BINLOG_DIR})"
- mkdir -p ${BEANSTALKD_BINLOG_DIR} && chown ${BEANSTALKD_USER}:${BEANSTALKD_USER} ${BEANSTALKD_BINLOG_DIR}
- fi
- options="${options} -b ${BEANSTALKD_BINLOG_DIR}"
- if [ "${BEANSTALKD_BINLOG_FSYNC_PERIOD}" != "" ]; then
- options="${options} -f ${BEANSTALKD_BINLOG_FSYNC_PERIOD}"
- else
- options="${options} -F"
- fi
- if [ "${BEANSTALKD_BINLOG_SIZE}" != "" ]; then
- options="${options} -s ${BEANSTALKD_BINLOG_SIZE}"
- fi
- fi
-
- daemon $exec -d $options
- retval=$?
- echo
- [ $retval -eq 0 ] && touch $lockfile
- return $retval
-}
-
-stop() {
- echo -n $"Stopping $prog: "
- # stop it here, often "killproc $prog"
- killproc $prog -INT
- retval=$?
- echo
- [ $retval -eq 0 ] && rm -f $lockfile
- return $retval
-}
-
-restart() {
- stop
- start
-}
-
-reload() {
- restart
-}
-
-force_reload() {
- restart
-}
-
-rh_status() {
- # run checks to determine if the service is running or use generic status
- status $prog
-}
-
-rh_status_q() {
- rh_status >/dev/null 2>&1
-}
-
-
-case "$1" in
- start)
- rh_status_q && exit 0
- $1
- ;;
- stop)
- rh_status_q || exit 0
- $1
- ;;
- restart)
- $1
- ;;
- reload)
- rh_status_q || exit 7
- $1
- ;;
- force-reload)
- force_reload
- ;;
- status)
- rh_status
- ;;
- condrestart|try-restart)
- rh_status_q || exit 0
- restart
- ;;
- *)
- echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
- exit 2
-esac
-exit $?
-
@@ -1,28 +0,0 @@
-# System configuration for the beanstalkd daemon
-
-# Available options correspond to the options to the
-# beanstalkd commandline.
-
-BEANSTALKD_ADDR=0.0.0.0
-BEANSTALKD_PORT=11300
-BEANSTALKD_USER=beanstalkd
-
-# Job size is left to the default. Uncomment and set it
-# to a value to have it take affect.
-#BEANSTALKD_MAX_JOB_SIZE=65535
-
-# Using the binlog is off by default.
-#
-# The direcory to house the binlog. This will be created
-# if it does not exist
-#BEANSTALKD_BINLOG_DIR=/var/lib/beanstalkd/binlog
-#
-# fsync the binlog at most once every N milliseconds.
-# setting this to 0 means 'always fsync'. If this is unset,
-# and the binlog is used, then no explicit fsync is ever
-# performed. That is, the -F option is used.
-#BEANSTALKD_BINLOG_FSYNC_PERIOD=
-#
-# The size of each binlog file. This is rounded
-# up to the nearest 512 byte boundary.
-#BEANSTALKD_BINLOG_SIZE=10485760

0 comments on commit beefa83

Please sign in to comment.