diff options
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 |