diff options
Diffstat (limited to 'app-misc/beanstalkd/files/init-1.9')
-rw-r--r-- | app-misc/beanstalkd/files/init-1.9 | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/app-misc/beanstalkd/files/init-1.9 b/app-misc/beanstalkd/files/init-1.9 new file mode 100644 index 00000000000..2b86c7e6f0e --- /dev/null +++ b/app-misc/beanstalkd/files/init-1.9 @@ -0,0 +1,26 @@ +#!/sbin/runscript +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of MIT +# $Id$ + +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} -z ${JOB_SIZE} + eend $? +} + +stop() { + ebegin "Stopping beanstalkd" + start-stop-daemon --stop --quiet \ + --pidfile ${PIDFILE} \ + --exec ${BEANSTALKD_BINARY} + eend $? +} |