summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2011-03-05 10:43:29 +0000
committerMike Frysinger <vapier@gentoo.org>2011-03-05 10:43:29 +0000
commite321189ef93c7cff11705451b03c414ddc7bfdff (patch)
tree645e63264fe2e9c4a4f63dfaf7f24b17755b9ae5 /net-misc
parentversion bump (diff)
downloadgentoo-2-e321189ef93c7cff11705451b03c414ddc7bfdff.tar.gz
gentoo-2-e321189ef93c7cff11705451b03c414ddc7bfdff.tar.bz2
gentoo-2-e321189ef93c7cff11705451b03c414ddc7bfdff.zip
Make sure the pidfile dir exists with right perms.
(Portage version: 2.2.0_alpha25/cvs/Linux x86_64)
Diffstat (limited to 'net-misc')
-rw-r--r--net-misc/radvd/ChangeLog7
-rw-r--r--net-misc/radvd/files/radvd.init10
2 files changed, 11 insertions, 6 deletions
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 <vapier@gentoo.org> files/radvd.init:
+ Make sure the pidfile dir exists with right perms.
14 Aug 2010; Markus Meier <maekke@gentoo.org> 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