diff options
author | Francesco Colista <fcolista@alpinelinux.org> | 2016-08-25 07:34:47 +0000 |
---|---|---|
committer | Francesco Colista <fcolista@alpinelinux.org> | 2016-08-25 07:55:48 +0000 |
commit | 9994bb8b5c328ba14a44119d774fba884c74faaa (patch) | |
tree | 3726d173a73a435b6b1551bff8cd6962c541ec83 /community/beanstalkd/beanstalkd.initd | |
parent | de9872306f88b5f382d832d9ba200443364b5697 (diff) | |
download | aports-9994bb8b5c328ba14a44119d774fba884c74faaa.tar.bz2 aports-9994bb8b5c328ba14a44119d774fba884c74faaa.tar.xz |
community/beanstalkd: moved from testing
Diffstat (limited to 'community/beanstalkd/beanstalkd.initd')
-rw-r--r-- | community/beanstalkd/beanstalkd.initd | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/community/beanstalkd/beanstalkd.initd b/community/beanstalkd/beanstalkd.initd new file mode 100644 index 0000000000..475f102568 --- /dev/null +++ b/community/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 $? +} + |