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 munin-asyncd.init.2 |
Date: | Thu, 23 Aug 2012 19:21:07 |
Message-Id: | 20120823192042.B40E6204B2@flycatcher.gentoo.org |
1 | flameeyes 12/08/23 19:20:42 |
2 | |
3 | Added: munin-node_init.d_2.0.5 munin-asyncd.init.2 |
4 | Log: |
5 | Remove old; revision bump: implement munin-asyncd support properly with an init script that drops privilege and a separate role uid to run on; pkg_config also generates SSH keys for the munin user for SSH transport support. |
6 | |
7 | (Portage version: 2.2.0_alpha121/cvs/Linux x86_64) |
8 | |
9 | Revision Changes Path |
10 | 1.1 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.1&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.1&content-type=text/plain |
14 | |
15 | Index: munin-node_init.d_2.0.5 |
16 | =================================================================== |
17 | #!/sbin/runscript |
18 | # Copyright 1999-2012 Gentoo Foundation |
19 | # Distributed under the terms of the GNU General Public License v2 |
20 | # $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 $ |
21 | |
22 | get_munin_config() { |
23 | awk '$1 == "'$1'" { s=$2 } END { print s }' "$CFGFILE" |
24 | } |
25 | |
26 | : ${CFGFILE:=/etc/munin/munin-node.conf} |
27 | |
28 | command=/usr/sbin/munin-node |
29 | command_args="--config ${CFGFILE}" |
30 | pidfile=$(get_munin_config pid_file) |
31 | start_stop_daemon_args="--nicelevel ${NICE_LEVEL:-0}" |
32 | |
33 | depend() { |
34 | config "$CFGFILE" |
35 | |
36 | need net |
37 | before cron |
38 | |
39 | [ "$(get_munin_config log_file)" == "Sys::Syslog" ] && \ |
40 | use logger |
41 | } |
42 | |
43 | # vim: filetype=gentoo-init-d: |
44 | |
45 | |
46 | |
47 | 1.1 net-analyzer/munin/files/munin-asyncd.init.2 |
48 | |
49 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/munin/files/munin-asyncd.init.2?rev=1.1&view=markup |
50 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/munin/files/munin-asyncd.init.2?rev=1.1&content-type=text/plain |
51 | |
52 | Index: munin-asyncd.init.2 |
53 | =================================================================== |
54 | #!/sbin/runscript |
55 | # Copyright 1999-2012 Gentoo Foundation |
56 | # Distributed under the terms of the GNU General Public License v2 |
57 | # $Header: /var/cvsroot/gentoo-x86/net-analyzer/munin/files/munin-asyncd.init.2,v 1.1 2012/08/23 19:20:42 flameeyes Exp $ |
58 | |
59 | command=/usr/libexec/munin/munin-asyncd |
60 | command_args="--fork" |
61 | pidfile="/var/run/munin/munin-asyncd.pid" |
62 | start_stop_daemon_args="--background --make-pidfile --user munin-asyncd" |
63 | |
64 | depend() { |
65 | need munin-node |
66 | before cron |
67 | } |
68 | |
69 | start_pre() { |
70 | checkpath -d -o munin-async -m 0700 /var/spool/munin |
71 | } |
72 | |
73 | # vim: filetype=gentoo-init-d: |