From c0e2921f5a93106156e9fe59dcb7e07af0c07cfe Mon Sep 17 00:00:00 2001 From: Jeroen Roovers Date: Sun, 4 Sep 2011 17:54:49 +0000 Subject: Add support for cleaned /var/run on startup by Xake and i.Dark_Templar (bug #332429). (Portage version: 2.2.0_alpha52/cvs/Linux x86_64) --- net-analyzer/vnstat/ChangeLog | 6 +++++- net-analyzer/vnstat/files/vnstatd.initd | 5 +++-- 2 files changed, 8 insertions(+), 3 deletions(-) (limited to 'net-analyzer/vnstat') diff --git a/net-analyzer/vnstat/ChangeLog b/net-analyzer/vnstat/ChangeLog index 13b2a8c0ff0b..87f0c85bcf7e 100644 --- a/net-analyzer/vnstat/ChangeLog +++ b/net-analyzer/vnstat/ChangeLog @@ -1,6 +1,10 @@ # ChangeLog for net-analyzer/vnstat # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-analyzer/vnstat/ChangeLog,v 1.48 2011/09/04 17:41:24 jer Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-analyzer/vnstat/ChangeLog,v 1.49 2011/09/04 17:54:49 jer Exp $ + + 04 Sep 2011; Jeroen Roovers files/vnstatd.initd: + Add support for cleaned /var/run on startup by Xake and i.Dark_Templar (bug + #332429). *vnstat-1.11-r1 (04 Sep 2011) diff --git a/net-analyzer/vnstat/files/vnstatd.initd b/net-analyzer/vnstat/files/vnstatd.initd index 24172d7f0775..598eedc185fb 100644 --- a/net-analyzer/vnstat/files/vnstatd.initd +++ b/net-analyzer/vnstat/files/vnstatd.initd @@ -1,7 +1,7 @@ #!/sbin/runscript -# Copyright 2009-2011 Gentoo Foundation +# Copyright 1999-2011 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-analyzer/vnstat/files/vnstatd.initd,v 1.2 2011/09/04 17:41:24 jer Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-analyzer/vnstat/files/vnstatd.initd,v 1.3 2011/09/04 17:54:49 jer Exp $ opts="reload" @@ -13,6 +13,7 @@ VNSTATD_PIDFILE="${VNSTATD_PIDFILE:-/var/run/vnstatd/vnstatd.pid}" start() { ebegin "Starting vnstatd" + checkpath -q -d -m 755 -o vnstat:vnstat $( dirname /var/run/vnstatd ) start-stop-daemon --start --quiet \ --pidfile "${VNSTATD_PIDFILE}" \ --user vnstat --group vnstat \ -- cgit v1.2.3-65-gdbad