diff options
author | Francesco Colista <fcolista@alpinelinux.org> | 2016-06-24 13:35:44 +0000 |
---|---|---|
committer | Francesco Colista <fcolista@alpinelinux.org> | 2016-06-24 13:35:48 +0000 |
commit | a43164fdf714535edbd6c83f467eb41c123ba37f (patch) | |
tree | f196a4bb03f98158c2138adb83ebce24783039d1 /testing/beanstalkd/beanstalkd.initd | |
parent | 49ffc7a9a06911b8b05a9b011195e42072bd279d (diff) | |
download | aports-a43164fdf714535edbd6c83f467eb41c123ba37f.tar.bz2 aports-a43164fdf714535edbd6c83f467eb41c123ba37f.tar.xz |
testing/beanstalkd: new aport. Fixes #5743
Diffstat (limited to 'testing/beanstalkd/beanstalkd.initd')
-rw-r--r-- | testing/beanstalkd/beanstalkd.initd | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/testing/beanstalkd/beanstalkd.initd b/testing/beanstalkd/beanstalkd.initd new file mode 100644 index 0000000000..475f102568 --- /dev/null +++ b/testing/beanstalkd/beanstalkd.initd @@ -0,0 +1,27 @@ +#!/sbin/openrc-run +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of MIT +# $Header: /var/cvsroot/gentoo-x86/app-misc/beanstalkd/files/init-1.9,v 1.1 2014/03/31 06:34:28 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} -z ${JOB_SIZE} + eend $? +} + +stop() { + ebegin "Stopping beanstalkd" + start-stop-daemon --stop --quiet \ + --pidfile ${PIDFILE} \ + --exec ${BEANSTALKD_BINARY} + eend $? +} + |