summaryrefslogtreecommitdiff
path: root/app-misc/beanstalkd/files/init-1.8
diff options
context:
space:
mode:
Diffstat (limited to 'app-misc/beanstalkd/files/init-1.8')
-rw-r--r--app-misc/beanstalkd/files/init-1.826
1 files changed, 26 insertions, 0 deletions
diff --git a/app-misc/beanstalkd/files/init-1.8 b/app-misc/beanstalkd/files/init-1.8
new file mode 100644
index 00000000000..6de235504a0
--- /dev/null
+++ b/app-misc/beanstalkd/files/init-1.8
@@ -0,0 +1,26 @@
+#!/sbin/runscript
+# Copyright 1999-2012 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}
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping beanstalkd"
+ start-stop-daemon --stop --quiet \
+ --pidfile ${PIDFILE} \
+ --exec ${BEANSTALKD_BINARY}
+ eend $?
+} \ No newline at end of file