Fix gmond startup at boot time

PR:		ports/184747
Submitted by:	martymac
Approved by:	skreuzer (maintainer)
This commit is contained in:
Ganael LAPLANCHE 2014-01-07 08:04:09 +00:00
parent 0f19095998
commit deddc04560
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=338980
2 changed files with 13 additions and 4 deletions

View file

@ -2,7 +2,7 @@
PORTNAME= monitor-core
PORTVERSION= 3.4.0
PORTREVISION= 1
PORTREVISION= 2
CATEGORIES= sysutils net parallel
MASTER_SITES= SF/ganglia/ganglia%20monitoring%20core/${PORTVERSION}
PKGNAMEPREFIX= ganglia-

View file

@ -1,14 +1,23 @@
#!/bin/sh
# $FreeBSD: head/sysutils/ganglia-monitor-core/files/gmond.in 302141 2012-08-05 23:19:36Z dougb $
# $FreeBSD$
# PROVIDE: gmond
# REQUIRE: DAEMON
# KEYWORD: shutdown
bname=`basename $0`
. /etc/rc.subr
case "$0" in
/etc/rc*)
# during boot (shutdown) $0 is /etc/rc (/etc/rc.shutdown),
# so get the name of the script from $_file
bname=`basename $_file`
;;
*)
bname=`basename $0`
;;
esac
name=`echo "${bname}" | tr ".-" "__"`
rcvar=${name}_enable