2a56fd9001
some bugs. - Spell REQUIRE correctly in ganglia.sh.in - For systems where rcorder is run on LOCALBASE/etc/rc.d, split ganglia.sh into gmond.sh and gmetad.sh. - Replace the patches changing user nobody to ganglia with REINPLACE_CMD in post-patch removing a maintance issue and decreasing the file count. Also, expand the scope to include gmond.conf's documentation which was missed missed previously.
25 lines
369 B
Bash
25 lines
369 B
Bash
#!/bin/sh
|
|
# $FreeBSD$
|
|
|
|
# PROVIDE: gmond
|
|
# REQUIRE: DAEMON
|
|
# KEYWORD: shutdown
|
|
|
|
|
|
. %%RC_SUBR%%
|
|
|
|
name=gmond
|
|
rcvar=`set_rcvar`
|
|
command="%%PREFIX%%/sbin/${name}"
|
|
|
|
load_rc_config ganglia
|
|
|
|
load_rc_config $name
|
|
|
|
gmond_enable=${gmond_enable-NO}
|
|
gmond_conf=${gmond_conf-%%PREFIX%%/etc/gmond.conf}
|
|
|
|
command_args="-c ${gmond_conf}"
|
|
required_files=${gmond_conf}
|
|
|
|
run_rc_command $*
|