diff options
author | dougb <dougb@FreeBSD.org> | 2006-01-07 14:29:57 +0800 |
---|---|---|
committer | dougb <dougb@FreeBSD.org> | 2006-01-07 14:29:57 +0800 |
commit | f22aefad354646e367125e29367738156d9ce45e (patch) | |
tree | 263b1289f4801350149db40a8f79e53ace385ecc /sysutils/ganglia-monitor-core | |
parent | 11b367b069d969e162b021882dd5ad152744a56e (diff) | |
download | freebsd-ports-gnome-f22aefad354646e367125e29367738156d9ce45e.tar.gz freebsd-ports-gnome-f22aefad354646e367125e29367738156d9ce45e.tar.zst freebsd-ports-gnome-f22aefad354646e367125e29367738156d9ce45e.zip |
Now that new style rc.d scripts are being run as part of the
base rcorder, hard coded variable values in these scripts
are overriding the values in /etc/rc.conf[.local] (due to
the way that variables from the latter are read at boot time).
Therefore, change the boot scripts to set default values only
if the variable is unset in /etc/rc.conf[.local]. This will
allow the service to start at boot time if it's been enabled
as the user would expect.
This change will be a noop for users who have systems that
have not yet been upgraded to the new rc.d code in the base.
In many cases there are other variables in the scripts that
should get similar treatment, however I did not change
anything other than the _enable lines. I'll leave the rest
up to the maintainers to do as they see fit.
Bump PORTREVISION to make sure that users and packages
pick up this change.
Diffstat (limited to 'sysutils/ganglia-monitor-core')
-rw-r--r-- | sysutils/ganglia-monitor-core/Makefile | 2 | ||||
-rw-r--r-- | sysutils/ganglia-monitor-core/files/ganglia.sh.in | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/sysutils/ganglia-monitor-core/Makefile b/sysutils/ganglia-monitor-core/Makefile index 64437207de27..a6698894a492 100644 --- a/sysutils/ganglia-monitor-core/Makefile +++ b/sysutils/ganglia-monitor-core/Makefile @@ -7,7 +7,7 @@ PORTNAME= monitor-core PORTVERSION= 3.0.1 -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= sysutils net parallel .if !defined(PORTDEV) MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} diff --git a/sysutils/ganglia-monitor-core/files/ganglia.sh.in b/sysutils/ganglia-monitor-core/files/ganglia.sh.in index 2876a8f22846..bb13de996c9d 100644 --- a/sysutils/ganglia-monitor-core/files/ganglia.sh.in +++ b/sysutils/ganglia-monitor-core/files/ganglia.sh.in @@ -9,12 +9,12 @@ # dependencies, but we can't do that at the moment and gmetad doesn't # work without a running gmond. -gmond_enable="NO" +gmond_enable="${gmond_enable-NO}" gmond_conf="%%PREFIX%%/etc/gmond.conf" -gmetad_enable="NO" +gmetad_enable="${gmetad_enable-NO}" gmetad_conf="%%PREFIX%%/etc/gmetad.conf" -gmetasnap_enable="NO" +gmetasnap_enable="${gmetasnap_enable-NO}" gmetasnap_rrddir="/var/db/ganglia/rrds" gmetasnap_snapdir="/var/db/ganglia/snaps" gmetasnap_snapname="snap" |