FreeBSD Bugzilla – Attachment 113544 Details for
Bug 155109
sysutils/munin-node looses $PATH after SIGHUP
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 6.14 KB, created by
claudius
on 2011-02-28 01:20:08 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
claudius
Created:
2011-02-28 01:20:08 UTC
Size:
6.14 KB
patch
obsolete
>diff -ruN munin-node.orig/files/patch-node-node.d.freebsd-coretemp.diff munin-node/files/patch-node-node.d.freebsd-coretemp.diff >--- munin-node.orig/files/patch-node-node.d.freebsd-coretemp.diff 2011-02-15 01:11:56.000000000 +0100 >+++ munin-node/files/patch-node-node.d.freebsd-coretemp.diff 2011-02-28 00:55:35.818272000 +0100 >@@ -1,11 +1,20 @@ >---- ./plugins/node.d.freebsd/coretemp.in.orig 2011-02-14 23:51:14.000000000 +0100 >-+++ ./plugins/node.d.freebsd/coretemp.in 2011-02-14 23:52:10.000000000 +0100 >+--- ./plugins/node.d.freebsd/coretemp.in.orig 2009-04-01 14:24:27.000000000 +0200 >++++ ./plugins/node.d.freebsd/coretemp.in 2011-02-28 00:50:40.800109873 +0100 >+@@ -37,7 +37,7 @@ >+ } >+ >+ cpus() { >+- sysctl -N dev.cpu | >++ /sbin/sysctl -N dev.cpu | >+ awk -F. '$4 == "temperature" { print $3 }' >+ } >+ > @@ -75,7 +75,7 @@ > reqcpus > for cpu in $cpus ; do > echo -n "CPU$cpu.value " > - sysctl -n dev.cpu.$cpu.temperature >-+ sysctl -n dev.cpu.$cpu.temperature | tr -d 'C' >++ /sbin/sysctl -n dev.cpu.$cpu.temperature | tr -d 'C' > done > } > >diff -ruN munin-node.orig/files/patch-node-node.d.freebsd-dev_cpu_.diff munin-node/files/patch-node-node.d.freebsd-dev_cpu_.diff >--- munin-node.orig/files/patch-node-node.d.freebsd-dev_cpu_.diff 2011-02-15 01:11:56.000000000 +0100 >+++ munin-node/files/patch-node-node.d.freebsd-dev_cpu_.diff 2011-02-28 00:55:43.993308000 +0100 >@@ -1,11 +1,20 @@ >---- ./plugins/node.d.freebsd/dev_cpu_.in.orig 2011-02-15 00:02:38.000000000 +0100 >-+++ ./plugins/node.d.freebsd/dev_cpu_.in 2011-02-15 00:03:19.000000000 +0100 >+--- ./plugins/node.d.freebsd/dev_cpu_.in.orig 2009-09-16 12:04:17.000000000 +0200 >++++ ./plugins/node.d.freebsd/dev_cpu_.in 2011-02-28 00:51:25.582132769 +0100 >+@@ -39,7 +39,7 @@ >+ } >+ >+ cpus() { >+- sysctl -N dev.cpu | awk -F. '$4 == "'"$func"'" { print $3 }' >++ /sbin/sysctl -N dev.cpu | awk -F. '$4 == "'"$func"'" { print $3 }' >+ } >+ >+ reqcpus() { > @@ -109,7 +109,7 @@ > reqcpus > for cpu in $cpus ; do > echo -n "CPU$cpu.value " > - sysctl -n "dev.cpu.$cpu.$func" >-+ sysctl -n "dev.cpu.$cpu.$func" | tr -d 'C' >++ /sbin/sysctl -n "dev.cpu.$cpu.$func" | tr -d 'C' > done > } > >diff -ruN munin-node.orig/files/patch-plugins__node.d__ntp_kernel_err.in munin-node/files/patch-plugins__node.d__ntp_kernel_err.in >--- munin-node.orig/files/patch-plugins__node.d__ntp_kernel_err.in 1970-01-01 01:00:00.000000000 +0100 >+++ munin-node/files/patch-plugins__node.d__ntp_kernel_err.in 2011-02-28 01:05:26.023827000 +0100 >@@ -0,0 +1,17 @@ >+--- ./plugins/node.d/ntp_kernel_err.in.orig 2011-02-28 00:35:09.994732672 +0100 >++++ ./plugins/node.d/ntp_kernel_err.in 2011-02-28 00:36:06.910859461 +0100 >+@@ -33,7 +33,7 @@ >+ >+ if [ "$1" = "autoconf" ]; then >+ # Not all ntpdc's are equal >+- ntpdc -c kern 2>/dev/null | >++ /usr/sbin/ntpdc -c kern 2>/dev/null | >+ awk 'BEGIN { ev=1; } >+ /^estimated error:/ { ev=0; } >+ END { if (ev == 0) { print "yes";} else { print "no"; } exit ev; }' >+@@ -51,4 +51,4 @@ >+ fi >+ >+ echo -n 'ntp_err.value ' >+-ntpdc -c kern | awk '/^estimated error:/ { print $3 }' >++/usr/sbin/ntpdc -c kern | awk '/^estimated error:/ { print $3 }' >diff -ruN munin-node.orig/files/patch-plugins__node.d__ntp_kernel_pll_freq.diff munin-node/files/patch-plugins__node.d__ntp_kernel_pll_freq.diff >--- munin-node.orig/files/patch-plugins__node.d__ntp_kernel_pll_freq.diff 1970-01-01 01:00:00.000000000 +0100 >+++ munin-node/files/patch-plugins__node.d__ntp_kernel_pll_freq.diff 2011-02-28 00:56:12.008994000 +0100 >@@ -0,0 +1,17 @@ >+--- ./plugins/node.d/ntp_kernel_pll_freq.in.orig 2011-02-28 00:35:10.015020687 +0100 >++++ ./plugins/node.d/ntp_kernel_pll_freq.in 2011-02-28 00:36:34.236694522 +0100 >+@@ -39,7 +39,7 @@ >+ # $Id: ntp_kernel_pll_freq.in,v 1.1.1.1 2006/06/04 20:53:57 he Exp $ >+ >+ if [ "$1" = "autoconf" ]; then >+- ntpdc -c kern 2>/dev/null | >++ /usr/sbin/ntpdc -c kern 2>/dev/null | >+ awk 'BEGIN { ev=1; } >+ /^pll frequency:/ { ev=0; } >+ END { if (ev == 0) { print "yes";} else { print "no"; } exit ev; }' >+@@ -64,4 +64,4 @@ >+ fi >+ >+ echo -n 'ntp_pll_freq.value ' >+-ntpdc -c kern | awk -v fcomp=$fcomp '/^pll frequency:/ { print $3 + fcomp }' >++/usr/sbin/ntpdc -c kern | awk -v fcomp=$fcomp '/^pll frequency:/ { print $3 + fcomp }' >diff -ruN munin-node.orig/files/patch-plugins__node.d__ntp_kernel_pll_off.diff munin-node/files/patch-plugins__node.d__ntp_kernel_pll_off.diff >--- munin-node.orig/files/patch-plugins__node.d__ntp_kernel_pll_off.diff 1970-01-01 01:00:00.000000000 +0100 >+++ munin-node/files/patch-plugins__node.d__ntp_kernel_pll_off.diff 2011-02-28 00:56:19.007663000 +0100 >@@ -0,0 +1,17 @@ >+--- ./plugins/node.d/ntp_kernel_pll_off.in.orig 2011-02-28 00:35:10.035351721 +0100 >++++ ./plugins/node.d/ntp_kernel_pll_off.in 2011-02-28 00:36:46.023122495 +0100 >+@@ -32,7 +32,7 @@ >+ # $Id: ntp_kernel_pll_off.in,v 1.1.1.1 2006/06/04 20:53:57 he Exp $ >+ >+ if [ "$1" = "autoconf" ]; then >+- ntpdc -c kern 2>/dev/null | >++ /usr/sbin/ntpdc -c kern 2>/dev/null | >+ awk 'BEGIN { ev=1; } >+ /^pll offset:/ { ev=0; } >+ END { if (ev == 0) { print "yes";} else { print "no"; } exit ev; }' >+@@ -50,4 +50,4 @@ >+ fi >+ >+ echo -n 'ntp_pll_off.value ' >+-ntpdc -c kern | awk '/^pll offset:/ { print $3 }' >++/usr/sbin/ntpdc -c kern | awk '/^pll offset:/ { print $3 }' >diff -ruN munin-node.orig/files/patch-plugins__node.d__postfix_mailqueue.diff munin-node/files/patch-plugins__node.d__postfix_mailqueue.diff >--- munin-node.orig/files/patch-plugins__node.d__postfix_mailqueue.diff 1970-01-01 01:00:00.000000000 +0100 >+++ munin-node/files/patch-plugins__node.d__postfix_mailqueue.diff 2011-02-28 01:10:18.691155000 +0100 >@@ -0,0 +1,11 @@ >+--- ./plugins/node.d/postfix_mailqueue.in.orig 2011-02-28 00:48:36.935940082 +0100 >++++ ./plugins/node.d/postfix_mailqueue.in 2011-02-28 00:49:17.298330137 +0100 >+@@ -84,7 +84,7 @@ >+ # atempt to get spooldir via postconf, but environment overrides. >+ >+ # Remember that postconf is not available unless postfix is. >+-POSTCONFSPOOL="$(postconf -h queue_directory 2>/dev/null || echo /var/spool/postfix)" >++POSTCONFSPOOL="$(/usr/local/sbin/postconf -h queue_directory 2>/dev/null || echo /var/spool/postfix)" >+ SPOOLDIR=${spooldir:-$POSTCONFSPOOL} >+ >+ . $MUNIN_LIBDIR/plugins/plugin.sh
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 155109
: 113544