44 lines
975 B
Diff
44 lines
975 B
Diff
diff -up radvd-1.3/redhat/radvd.init.posix radvd-1.3/redhat/radvd.init
|
|
--- 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=$?
|
|
echo
|
|
- [ $RETVAL -eq 0 ] && touch $LOCKFILE
|
|
+ if [ $RETVAL -eq 0 ]; then
|
|
+ touch $LOCKFILE
|
|
+ else
|
|
+ if [ -f $LOCKFILE ]; then
|
|
+ RETVAL=0
|
|
+ fi
|
|
+ fi
|
|
;;
|
|
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
|
|
|