From 6e64f2ccbb834d267f114796db018c8019f75dfc Mon Sep 17 00:00:00 2001 From: Jiri Skala Date: Mon, 23 Jun 2008 14:41:25 +0000 Subject: [PATCH] - radvd.init LSB compliant --- radvd.init | 15 +++++++++++++-- radvd.spec | 5 ++++- 2 files changed, 17 insertions(+), 3 deletions(-) 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