- fixed #528178 - added force-reload

This commit is contained in:
Jiri Skala 2009-10-18 20:43:51 +00:00
parent 386e109c43
commit 7dbf091518
3 changed files with 34 additions and 6 deletions

View File

@ -1,6 +1,6 @@
diff -up radvd-1.3/redhat/radvd.init.posix radvd-1.3/redhat/radvd.init
--- radvd-1.3/redhat/radvd.init.posix 2009-10-18 22:02:19.343363622 +0200
+++ radvd-1.3/redhat/radvd.init 2009-10-18 22:04:48.794336898 +0200
--- radvd-1.3/redhat/radvd.init.posix 2009-05-25 08:17:28.000000000 +0200
+++ radvd-1.3/redhat/radvd.init 2009-10-18 22:41:14.859329142 +0200
@@ -47,7 +47,13 @@ case "$1" in
daemon radvd $OPTIONS
RETVAL=$?
@ -16,3 +16,28 @@ diff -up radvd-1.3/redhat/radvd.init.posix radvd-1.3/redhat/radvd.init
;;
stop)
echo -n $"Stopping $PROG: "
@@ -65,13 +71,13 @@ case "$1" in
$0 start
RETVAL=$?
;;
- reload)
+ reload|force-reload)
echo -n $"Reloading $PROG: "
killproc radvd -HUP
RETVAL=$?
echo
;;
- condrestart)
+ condrestart|try-restart)
if [ -f $LOCKFILE ]; then
$0 stop
$0 start
@@ -79,7 +85,7 @@ case "$1" in
fi
;;
*)
- echo $"Usage: $0 {start|stop|status|restart|reload|condrestart}"
+ echo $"Usage: $0 {start|stop|status|restart|try-restart|reload|force-reload}"
exit 2
esac

View File

@ -71,13 +71,13 @@ case "$1" in
$0 start
RETVAL=$?
;;
reload)
reload|force-reload)
echo -n $"Reloading $PROG: "
killproc radvd -HUP
RETVAL=$?
echo
;;
condrestart)
condrestart|try-restart)
if [ -f $LOCKFILE ]; then
$0 stop
$0 start
@ -85,7 +85,7 @@ case "$1" in
fi
;;
*)
echo $"Usage: $0 {start|stop|status|restart|reload|condrestart}"
echo $"Usage: $0 {start|stop|status|restart|try-restart|reload|force-reload}"
exit 2
esac

View File

@ -5,7 +5,7 @@
Summary: A Router Advertisement daemon
Name: radvd
Version: 1.3
Release: 3%{?dist}
Release: 4%{?dist}
# The code includes the advertising clause, so it's GPL-incompatible
License: BSD with advertising
Group: System Environment/Daemons
@ -95,6 +95,9 @@ fi
%{_sbindir}/radvdump
%changelog
* Sun Oct 18 2009 Jiri Skala <jskala@redhat.com> - 1.3-4
- fixed #528178 - added force-reload
* Sun Oct 18 2009 Jiri Skala <jskala@redhat.com> - 1.3-3
- fixed #528178 - retval in init script to be posix compliant