freebsd-ports/databases/memcachedb/files/memcachedb.in
Doug Barton 1d6b4b3f91 Begin the process of deprecating sysutils/rc_subr by
s#. %%RC_SUBR%%#. /etc/rc.subr#
2010-03-27 00:15:24 +00:00

26 lines
539 B
Bash

#!/bin/sh
# $FreeBSD$
# PROVIDE: memcachedb
# REQUIRE: LOGIN
# KEYWORD: shutdown
# Add the following lines to /etc/rc.conf.local or /etc/rc.conf
# to enable this service:
#
# memcachedb_enable (bool): Set to NO by default.
# Set it to YES to enable memcachedb.
#
. /etc/rc.subr
name="memcachedb"
rcvar=`set_rcvar`
load_rc_config $name
command="%%PREFIX%%/bin/${name}"
: ${memcachedb_flags="-p11211 -l 127.0.0.1 -d -u nobody -f /var/db/memcachedb/default.db -H /var/db/memcachedb -P /var/run/memcachedb.pid"}
run_rc_command "$1"