Gentoo Archives: gentoo-commits

From: "Diego Petteno (flameeyes)" <flameeyes@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-analyzer/munin/files: munin-node_init.d_2.0.5
Date: Wed, 29 Aug 2012 18:04:19
Message-Id: 20120829180407.7D4F920B82@flycatcher.gentoo.org
1 flameeyes 12/08/29 18:04:07
2
3 Modified: munin-node_init.d_2.0.5
4 Log:
5 Add a reload command to munin-node init script; make virtual/awk dependency unconditional (used by the init scripts), and only depend on freeipmi at runtime.
6
7 (Portage version: 2.2.0_alpha123/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.3 net-analyzer/munin/files/munin-node_init.d_2.0.5
11
12 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/munin/files/munin-node_init.d_2.0.5?rev=1.3&view=markup
13 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/munin/files/munin-node_init.d_2.0.5?rev=1.3&content-type=text/plain
14 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/munin/files/munin-node_init.d_2.0.5?r1=1.2&r2=1.3
15
16 Index: munin-node_init.d_2.0.5
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/net-analyzer/munin/files/munin-node_init.d_2.0.5,v
19 retrieving revision 1.2
20 retrieving revision 1.3
21 diff -u -r1.2 -r1.3
22 --- munin-node_init.d_2.0.5 24 Aug 2012 22:13:22 -0000 1.2
23 +++ munin-node_init.d_2.0.5 29 Aug 2012 18:04:07 -0000 1.3
24 @@ -1,7 +1,7 @@
25 #!/sbin/runscript
26 # Copyright 1999-2012 Gentoo Foundation
27 # Distributed under the terms of the GNU General Public License v2
28 -# $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 $
29 +# $Header: /var/cvsroot/gentoo-x86/net-analyzer/munin/files/munin-node_init.d_2.0.5,v 1.3 2012/08/29 18:04:07 flameeyes Exp $
30
31 get_munin_config() {
32 awk '$1 == "'$1'" { s=$2 } END { print s }' "$CFGFILE"
33 @@ -13,6 +13,7 @@
34 command_args="--config ${CFGFILE}"
35 pidfile=$(get_munin_config pid_file)
36 start_stop_daemon_args="--nicelevel ${NICE_LEVEL:-0}"
37 +extra_started_commands="reload"
38
39 depend() {
40 config "$CFGFILE"
41 @@ -28,4 +29,10 @@
42 checkpath -d $(dirname ${pidfile})
43 }
44
45 +reload() {
46 + ebegin "Reloading ${SERVICE}"
47 + kill -HUP `cat ${pidfile}"`
48 + eend $?
49 +}
50 +
51 # vim: filetype=gentoo-init-d: