From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.77) (envelope-from ) id 1SnPL5-00046z-6V for garchives@archives.gentoo.org; Sat, 07 Jul 2012 07:21:59 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 3B79BE031D; Sat, 7 Jul 2012 07:21:52 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 0752BE031D for ; Sat, 7 Jul 2012 07:21:51 +0000 (UTC) Received: from flycatcher.gentoo.org (flycatcher.gentoo.org [81.93.255.6]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 6807C1B4092 for ; Sat, 7 Jul 2012 07:21:51 +0000 (UTC) Received: by flycatcher.gentoo.org (Postfix, from userid 2264) id 195272004B; Sat, 7 Jul 2012 07:21:50 +0000 (UTC) From: "Justin Lecher (jlec)" To: gentoo-commits@lists.gentoo.org Reply-To: gentoo-dev@lists.gentoo.org, jlec@gentoo.org Subject: [gentoo-commits] gentoo-x86 commit in net-analyzer/munin/files: munin-node_init.d_1.4.7 X-VCS-Repository: gentoo-x86 X-VCS-Files: munin-node_init.d_1.4.7 X-VCS-Directories: net-analyzer/munin/files X-VCS-Committer: jlec X-VCS-Committer-Name: Justin Lecher Content-Type: text/plain; charset=utf8 Message-Id: <20120707072150.195272004B@flycatcher.gentoo.org> Date: Sat, 7 Jul 2012 07:21:50 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: quoted-printable X-Archives-Salt: 851eaf10-018b-4ea7-9ea4-3cdfacf63f30 X-Archives-Hash: 2f372fb73f5b8f0a9f49308833223c58 jlec 12/07/07 07:21:50 Added: munin-node_init.d_1.4.7 Log: Add fix when /var/run is on tmpfs =20 (Portage version: 2.2.0_alpha116/cvs/Linux x86_64) Revision Changes Path 1.1 net-analyzer/munin/files/munin-node_init.d_1.4.7 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/munin= /files/munin-node_init.d_1.4.7?rev=3D1.1&view=3Dmarkup plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/munin= /files/munin-node_init.d_1.4.7?rev=3D1.1&content-type=3Dtext/plain Index: munin-node_init.d_1.4.7 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D #!/sbin/runscript # Copyright 1999-2012 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/net-analyzer/munin/files/munin-node_in= it.d_1.4.7,v 1.1 2012/07/07 07:21:50 jlec Exp $ get_munin_config() { awk '$1 =3D=3D "'$1'" { s=3D$2 } END { print s }' "$CFGFILE" } : ${NAME:=3D"munin-node"} : ${CFGFILE:=3D/etc/munin/munin-node.conf} : ${PIDFILE:=3D$(get_munin_config pid_file)} : ${NICE_LEVEL:=3D0} fix_dirs() { local rundir piddir piddir=3D$(dirname ${PIDFILE}) rundir=3D"/var/run/munin/plugin-state /var/run/munin/spool" for dir in ${piddir} ${rundir}; do [ -d ${dir} ] || mkdir -p ${dir} chown munin:munin ${dir} done } depend() { config "$CFGFILE" need net before cron [ "$(get_munin_config log_file)" =3D=3D "Sys::Syslog" ] && \ use logger } start() { fix_dirs ebegin "Starting $NAME" start-stop-daemon --nicelevel $NICE_LEVEL --start --pidfile $PIDFILE --e= xec /usr/sbin/$NAME -- \ --config "$CFGFILE" eend $? } stop() { ebegin "Stopping $NAME" start-stop-daemon --stop --pidfile $PIDFILE eend $? } # vim: filetype=3Dgentoo-init-d: