Skip site navigation (1)Skip section navigation (2)
Date:      Tue,  6 Nov 2012 16:12:06 +0100 (CET)
From:      Geoffroy Desvernay <dgeo@centrale-marseille.fr>
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        flo@FreeBSD.org
Subject:   ports/173423: [PATCH] sysutils/munin-node: use correct munin-sched pidfile
Message-ID:  <20121106151206.3C4AD1CD1B@dgeo.sysadm.ec-m.fr>
Resent-Message-ID: <201211061530.qA6FU3B0026711@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         173423
>Category:       ports
>Synopsis:       [PATCH] sysutils/munin-node: use correct munin-sched pidfile
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Nov 06 15:30:01 UTC 2012
>Closed-Date:
>Last-Modified:
>Originator:     Geoffroy Desvernay
>Release:        FreeBSD 9.1-RC2 amd64
>Organization:
Ecole Centrale de Marseille
>Environment:
System: FreeBSD dgeo.sysadm.ec-m.fr 9.1-RC2 FreeBSD 9.1-RC2 #0: Thu Oct 25 10:51:08 CEST 2012
>Description:
use correct pidfile for munin-sched rc script: pidfile is exctacted from munin-node.conf 
by default, thus resulting in being munin-node's pidfile !

Port maintainer (flo@FreeBSD.org) is cc'd.

Generated with FreeBSD Port Tools 0.99_6 (mode: change, diff: suffix)
>How-To-Repeat:
>Fix:

--- munin-node-2.0.7.patch begins here ---
diff -ruN --exclude=CVS ../munin-node.orig/files/munin-sched.in ./files/munin-sched.in
--- ../munin-node.orig/files/munin-sched.in	2012-09-14 00:00:33.000000000 +0200
+++ ./files/munin-sched.in	2012-11-06 16:04:26.000000000 +0100
@@ -21,7 +21,7 @@
 [ -z "$munin_sched_config" ] && munin_sched_config="%%PREFIX%%/etc/munin/munin-node.conf"
 
 command="%%PREFIX%%/sbin/munin-sched"
-pidfile=`awk '$1 == "pid_file" { print $2 }' $munin_sched_config`
+pidfile=`awk '$1 == "pid_file" { gsub("node","sched",$2); print $2; }' $munin_sched_config`
 
 load_rc_config $name
 run_rc_command "$1"
--- munin-node-2.0.7.patch ends here ---

>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20121106151206.3C4AD1CD1B>