blob: 8f250b83df7a3749286e6a2e11bd21303b1b49b9 (
plain)
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
|
#!/bin/sh
#
# $FreeBSD$
#
# PROVIDE: hbase_regionserver
# REQUIRE: LOGIN
# KEYWORD: shutdown
#
# hbase_regionserver_enable (bool): Set to NO by default.
# Set it to YES to enable HBase regionserver.
. /etc/rc.subr
export PATH=${PATH}:%%LOCALBASE%%/bin
name=hbase_regionserver
rcvar=hbase_regionserver_enable
load_rc_config "${name}"
: ${hbase_regionserver_enable:=NO}
: ${hbase_regionserver_user:=%%HBASE_USER%%}
command="%%PREFIX%%/hbase/bin/hbase-daemon.sh"
command_interpreter="bash"
command_args='--config %%ETCDIR%% start regionserver'
stop_cmd=hbase_regionserver_stop
hbase_regionserver_stop () {
su -m ${hbase_regionserver_user} -c "${command} --config %%ETCDIR%% stop regionserver"
}
run_rc_command "$1"
|