mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-24 11:45:18 +03:00
27 lines
622 B
Text
27 lines
622 B
Text
#!/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 $?
|
|
}
|
|
|