diff --git a/radvd.init b/radvd.init index d6962c3..ede373a 100644 --- a/radvd.init +++ b/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" diff --git a/radvd.spec b/radvd.spec index 7b32ad1..1218f7f 100644 --- a/radvd.spec +++ b/radvd.spec @@ -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 - 1.1-4 +- radvd.init LSB compliant + * Fri Apr 11 2008 Martin Nagy - 1.1-3 - remove stale pid file on start