From e321189ef93c7cff11705451b03c414ddc7bfdff Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Sat, 5 Mar 2011 10:43:29 +0000 Subject: Make sure the pidfile dir exists with right perms. (Portage version: 2.2.0_alpha25/cvs/Linux x86_64) --- net-misc/radvd/ChangeLog | 7 +++++-- net-misc/radvd/files/radvd.init | 10 ++++++---- 2 files changed, 11 insertions(+), 6 deletions(-) (limited to 'net-misc') diff --git a/net-misc/radvd/ChangeLog b/net-misc/radvd/ChangeLog index a2c4177c1305..4d58ee9cfaee 100644 --- a/net-misc/radvd/ChangeLog +++ b/net-misc/radvd/ChangeLog @@ -1,6 +1,9 @@ # ChangeLog for net-misc/radvd -# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-misc/radvd/ChangeLog,v 1.62 2010/08/14 11:17:55 maekke Exp $ +# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/net-misc/radvd/ChangeLog,v 1.63 2011/03/05 10:43:29 vapier Exp $ + + 05 Mar 2011; Mike Frysinger files/radvd.init: + Make sure the pidfile dir exists with right perms. 14 Aug 2010; Markus Meier radvd-1.6.ebuild: arm stable, bug #327163 diff --git a/net-misc/radvd/files/radvd.init b/net-misc/radvd/files/radvd.init index 436e93414108..a787fa71d144 100644 --- a/net-misc/radvd/files/radvd.init +++ b/net-misc/radvd/files/radvd.init @@ -1,7 +1,7 @@ #!/sbin/runscript -# Copyright 1999-2005 Gentoo Foundation +# Copyright 1999-2011 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-misc/radvd/files/radvd.init,v 1.3 2008/11/19 00:00:24 robbat2 Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-misc/radvd/files/radvd.init,v 1.4 2011/03/05 10:43:29 vapier Exp $ CONFIGFILE=/etc/radvd.conf PIDFILE=/var/run/radvd/radvd.pid @@ -9,7 +9,7 @@ SYSCTL_FORWARD=net.ipv6.conf.all.forwarding opts="reload" -depend () { +depend() { need net } @@ -18,9 +18,11 @@ checkconfig() { eerror "Configuration file ${CONFIGFILE} not found" return 1 fi + + checkpath -d -o radvd:radvd ${PIDFILE%/*} } -start () { +start() { checkconfig || return 1 if [ "${FORWARD}" != "no" ]; then -- cgit v1.2.3-65-gdbad