Date: Tue, 7 Jan 2014 08:04:10 +0000 (UTC) From: Ganael LAPLANCHE <martymac@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r338980 - in head/sysutils/ganglia-monitor-core: . files Message-ID: <201401070804.s0784A3t096518@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: martymac Date: Tue Jan 7 08:04:09 2014 New Revision: 338980 URL: http://svnweb.freebsd.org/changeset/ports/338980 Log: Fix gmond startup at boot time PR: ports/184747 Submitted by: martymac Approved by: skreuzer (maintainer) Modified: head/sysutils/ganglia-monitor-core/Makefile (contents, props changed) head/sysutils/ganglia-monitor-core/files/gmond.in (contents, props changed) Modified: head/sysutils/ganglia-monitor-core/Makefile ============================================================================== --- head/sysutils/ganglia-monitor-core/Makefile Tue Jan 7 07:35:09 2014 (r338979) +++ head/sysutils/ganglia-monitor-core/Makefile Tue Jan 7 08:04:09 2014 (r338980) @@ -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- Modified: head/sysutils/ganglia-monitor-core/files/gmond.in ============================================================================== --- head/sysutils/ganglia-monitor-core/files/gmond.in Tue Jan 7 07:35:09 2014 (r338979) +++ head/sysutils/ganglia-monitor-core/files/gmond.in Tue Jan 7 08:04:09 2014 (r338980) @@ -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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201401070804.s0784A3t096518>