1 |
flameeyes 12/08/24 22:13:22 |
2 |
|
3 |
Modified: localstart-munin munin-node_init.d_2.0.5 |
4 |
Log: |
5 |
Restore checkpath for the pidfile, but don't set owner on it (it doesn't need to have one, here); always change owners in the localstart script instead. Change the default pid_file for the node to /var/run/munin-node.pid as the node does not use anything else in that directory. |
6 |
|
7 |
(Portage version: 2.2.0_alpha121/cvs/Linux x86_64) |
8 |
|
9 |
Revision Changes Path |
10 |
1.2 net-analyzer/munin/files/localstart-munin |
11 |
|
12 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/munin/files/localstart-munin?rev=1.2&view=markup |
13 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/munin/files/localstart-munin?rev=1.2&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/munin/files/localstart-munin?r1=1.1&r2=1.2 |
15 |
|
16 |
Index: localstart-munin |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo-x86/net-analyzer/munin/files/localstart-munin,v |
19 |
retrieving revision 1.1 |
20 |
retrieving revision 1.2 |
21 |
diff -u -r1.1 -r1.2 |
22 |
--- localstart-munin 17 Jul 2012 11:21:10 -0000 1.1 |
23 |
+++ localstart-munin 24 Aug 2012 22:13:22 -0000 1.2 |
24 |
@@ -1,7 +1,5 @@ |
25 |
#!/bin/sh |
26 |
|
27 |
-[ -d /var/run/munin ] && exit 0 |
28 |
- |
29 |
mkdir -p /var/run/munin |
30 |
chown munin:munin /var/run/munin |
31 |
chmod 0700 /var/run/munin |
32 |
|
33 |
|
34 |
|
35 |
1.2 net-analyzer/munin/files/munin-node_init.d_2.0.5 |
36 |
|
37 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/munin/files/munin-node_init.d_2.0.5?rev=1.2&view=markup |
38 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/munin/files/munin-node_init.d_2.0.5?rev=1.2&content-type=text/plain |
39 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/munin/files/munin-node_init.d_2.0.5?r1=1.1&r2=1.2 |
40 |
|
41 |
Index: munin-node_init.d_2.0.5 |
42 |
=================================================================== |
43 |
RCS file: /var/cvsroot/gentoo-x86/net-analyzer/munin/files/munin-node_init.d_2.0.5,v |
44 |
retrieving revision 1.1 |
45 |
retrieving revision 1.2 |
46 |
diff -u -r1.1 -r1.2 |
47 |
--- munin-node_init.d_2.0.5 23 Aug 2012 19:20:42 -0000 1.1 |
48 |
+++ munin-node_init.d_2.0.5 24 Aug 2012 22:13:22 -0000 1.2 |
49 |
@@ -1,7 +1,7 @@ |
50 |
#!/sbin/runscript |
51 |
# Copyright 1999-2012 Gentoo Foundation |
52 |
# Distributed under the terms of the GNU General Public License v2 |
53 |
-# $Header: /var/cvsroot/gentoo-x86/net-analyzer/munin/files/munin-node_init.d_2.0.5,v 1.1 2012/08/23 19:20:42 flameeyes Exp $ |
54 |
+# $Header: /var/cvsroot/gentoo-x86/net-analyzer/munin/files/munin-node_init.d_2.0.5,v 1.2 2012/08/24 22:13:22 flameeyes Exp $ |
55 |
|
56 |
get_munin_config() { |
57 |
awk '$1 == "'$1'" { s=$2 } END { print s }' "$CFGFILE" |
58 |
@@ -24,4 +24,8 @@ |
59 |
use logger |
60 |
} |
61 |
|
62 |
+start_pre() { |
63 |
+ checkpath -d $(dirname ${pidfile}) |
64 |
+} |
65 |
+ |
66 |
# vim: filetype=gentoo-init-d: |