- radvd.init LSB compliant
This commit is contained in:
parent
bb9cfff70a
commit
6e64f2ccbb
15
radvd.init
15
radvd.init
@ -23,11 +23,22 @@
|
|||||||
. /etc/sysconfig/network
|
. /etc/sysconfig/network
|
||||||
|
|
||||||
# Check that networking is up.
|
# Check that networking is up.
|
||||||
[ x${NETWORKING_IPV6} = "xyes" ] || exit 0
|
if [ ! "${NETWORKING_IPV6}" = "yes" ]; then
|
||||||
|
echo "Networking IPv6 is disabled" 1>&2
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ ! -f /etc/radvd.conf ]; then
|
||||||
|
echo "Configuration file /etc/radvd.conf missing" 1>&2
|
||||||
|
exit 6
|
||||||
|
fi
|
||||||
|
|
||||||
[ -f /etc/sysconfig/radvd ] && . /etc/sysconfig/radvd
|
[ -f /etc/sysconfig/radvd ] && . /etc/sysconfig/radvd
|
||||||
|
|
||||||
[ -f /usr/sbin/radvd ] || exit 0
|
if [ ! -x /usr/sbin/radvd ]; then
|
||||||
|
echo "Insufficient privilege" 1>&2
|
||||||
|
exit 4
|
||||||
|
fi
|
||||||
|
|
||||||
RETVAL=0
|
RETVAL=0
|
||||||
prog="radvd"
|
prog="radvd"
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
Summary: A Router Advertisement daemon
|
Summary: A Router Advertisement daemon
|
||||||
Name: radvd
|
Name: radvd
|
||||||
Version: 1.1
|
Version: 1.1
|
||||||
Release: 3%{?dist}
|
Release: 4%{?dist}
|
||||||
# The code includes the advertising clause, so it's GPL-incompatible
|
# The code includes the advertising clause, so it's GPL-incompatible
|
||||||
License: BSD-style
|
License: BSD-style
|
||||||
Group: System Environment/Daemons
|
Group: System Environment/Daemons
|
||||||
@ -97,6 +97,9 @@ fi
|
|||||||
%{_sbindir}/radvdump
|
%{_sbindir}/radvdump
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Mon Jun 23 2008 Jiri Skala <jskala@redhat.com> - 1.1-4
|
||||||
|
- radvd.init LSB compliant
|
||||||
|
|
||||||
* Fri Apr 11 2008 Martin Nagy <mnagy@redhat.com> - 1.1-3
|
* Fri Apr 11 2008 Martin Nagy <mnagy@redhat.com> - 1.1-3
|
||||||
- remove stale pid file on start
|
- remove stale pid file on start
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user