FreeBSD Bugzilla – Attachment 138690 Details for
Bug 184747
sysutils/ganglia-monitor-core: gmond script does not start at boot time
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
patch-ganglia-monitor-core.txt
patch-ganglia-monitor-core.txt (text/plain), 1.03 KB, created by
Ganael LAPLANCHE
on 2013-12-16 08:40:00 UTC
(
hide
)
Description:
patch-ganglia-monitor-core.txt
Filename:
MIME Type:
Creator:
Ganael LAPLANCHE
Created:
2013-12-16 08:40:00 UTC
Size:
1.03 KB
patch
obsolete
>diff -aurN ganglia-monitor-core.orig/Makefile ganglia-monitor-core/Makefile >--- ganglia-monitor-core.orig/Makefile 2013-09-21 01:05:58.000000000 +0200 >+++ ganglia-monitor-core/Makefile 2013-12-16 09:33:07.038630060 +0100 >@@ -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- >diff -aurN ganglia-monitor-core.orig/files/gmond.in ganglia-monitor-core/files/gmond.in >--- ganglia-monitor-core.orig/files/gmond.in 2013-06-12 15:59:16.000000000 +0200 >+++ ganglia-monitor-core/files/gmond.in 2013-12-16 09:32:37.515630531 +0100 >@@ -5,10 +5,19 @@ > # 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 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 184747
: 138690