summaryrefslogtreecommitdiff
path: root/app-misc/beanstalkd/files/init-1.4.6
diff options
context:
space:
mode:
Diffstat (limited to 'app-misc/beanstalkd/files/init-1.4.6')
-rw-r--r--app-misc/beanstalkd/files/init-1.4.626
1 files changed, 26 insertions, 0 deletions
diff --git a/app-misc/beanstalkd/files/init-1.4.6 b/app-misc/beanstalkd/files/init-1.4.6
new file mode 100644
index 00000000000..bfbb74f6986
--- /dev/null
+++ b/app-misc/beanstalkd/files/init-1.4.6
@@ -0,0 +1,26 @@
+#!/sbin/runscript
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $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}
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping beanstalkd"
+ start-stop-daemon --stop --quiet \
+ --pidfile ${PIDFILE} \
+ --exec ${BEANSTALKD_BINARY}
+ eend $?
+}