freebsd-ports/sysutils/ganglia-monitor-core/files/gmond.sh.in
Brooks Davis 2a56fd9001 - Upgrade to 3.0.3 eliminating the need for the cpufreq patch and fixing
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.
2006-07-13 21:52:02 +00:00

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 $*