diff options
author | Mike Frysinger <vapier@gentoo.org> | 2011-03-05 10:43:29 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2011-03-05 10:43:29 +0000 |
commit | e321189ef93c7cff11705451b03c414ddc7bfdff (patch) | |
tree | 645e63264fe2e9c4a4f63dfaf7f24b17755b9ae5 /net-misc/radvd/files | |
parent | version bump (diff) | |
download | gentoo-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/radvd/files')
-rw-r--r-- | net-misc/radvd/files/radvd.init | 10 |
1 files changed, 6 insertions, 4 deletions
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 |