- 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
|
||||
|
||||
# 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 /usr/sbin/radvd ] || exit 0
|
||||
if [ ! -x /usr/sbin/radvd ]; then
|
||||
echo "Insufficient privilege" 1>&2
|
||||
exit 4
|
||||
fi
|
||||
|
||||
RETVAL=0
|
||||
prog="radvd"
|
||||
|
@ -5,7 +5,7 @@
|
||||
Summary: A Router Advertisement daemon
|
||||
Name: radvd
|
||||
Version: 1.1
|
||||
Release: 3%{?dist}
|
||||
Release: 4%{?dist}
|
||||
# The code includes the advertising clause, so it's GPL-incompatible
|
||||
License: BSD-style
|
||||
Group: System Environment/Daemons
|
||||
@ -97,6 +97,9 @@ fi
|
||||
%{_sbindir}/radvdump
|
||||
|
||||
%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
|
||||
- remove stale pid file on start
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user