blob: 4a17073998c4fa07c823c3e39eed7d4f7036295d (
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
|
#!/bin/sh
#
# $FreeBSD$
#
# PROVIDE: oozied
# REQUIRE: LOGIN
# KEYWORD: shutdown
#
# oozied_enable (bool): Set to NO by default.
# Set it to YES to enable oozied.
. /etc/rc.subr
export PATH=${PATH}:%%LOCALBASE%%/bin
name=oozied
rcvar=oozied_enable
pidfile=%%OOZIE_RUNDIR%%/${name}.pid
load_rc_config "${name}"
: ${oozied_enable:=NO}
oozied_user=%%OOZIE_USER%%
command="%%PREFIX%%/oozie/bin/oozied.sh"
command_args="start"
oozied_stop () {
${command} stop
}
run_rc_command "$1"
|