You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/app-misc/beanstalkd/files/init-1.7

26 lines
604 B

#!/sbin/runscript
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of MIT
# $Header: /var/cvsroot/gentoo-x86/app-misc/beanstalkd/files/init-1.7,v 1.1 2012/10/01 03:07:18 patrick Exp $
depend() {
need net
}
start() {
ebegin "Starting beanstalkd"
/sbin/start-stop-daemon --start \
--background \
--pidfile ${PIDFILE} --make-pidfile \
--exec ${BEANSTALKD_BINARY} \
-- -b ${DATADIR} -p ${PORT} -l ${ADDR} -u ${USER}
eend $?
}
stop() {
ebegin "Stopping beanstalkd"
start-stop-daemon --stop --quiet \
--pidfile ${PIDFILE} \
--exec ${BEANSTALKD_BINARY}
eend $?
}