blob: e0384dbfef8352cd86111edc518bc9468fa6027d (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
#!/bin/sh
#
# $FreeBSD$
#
# PROVIDE: memcacheq
# REQUIRE: LOGIN
# KEYWORD: shutdown
#
# Add the following lines to /etc/rc.conf to run memcacheq:
#
# memcacheq_enable (bool): Set it to "YES" to enable memcacheq.
# Default is "NO".
# memcacheq_flags (flags): Set extra flags here.
# Default is "-N -H /var/db/memcacheq -R -L 1024 -B 1024"
# memcacheq_user (user): Set user to run memcacheq.
# Default is "nobody".
#
. /etc/rc.subr
name="memcacheq"
rcvar=memcacheq_enable
sig_stop=KILL
load_rc_config ${name}
: ${memcacheq_enable="NO"}
: ${memcacheq_user="nobody"}
: ${memcacheq_flags="-N -H /var/db/memcacheq -R -L 1024 -B 1024"}
start_precmd="install -d -o $memcacheq_user -g wheel -m 700 /var/run/${name}"
command=%%PREFIX%%/bin/memcacheq
command_args="-u ${memcacheq_user} -P /var/run/${name}/${name}.pid -d"
run_rc_command "$1"
|