mirror of
https://gitlab.nic.cz/labs/bird.git
synced 2024-12-22 09:41:54 +00:00
Minor changes in Fedora init script.
This commit is contained in:
parent
ec35c7c2fc
commit
e9e6fbf924
@ -26,7 +26,7 @@ BIRD6="yes"
|
|||||||
[ -f /usr/sbin/bird ] || BIRD4="no"
|
[ -f /usr/sbin/bird ] || BIRD4="no"
|
||||||
[ "${NETWORKING}" = "yes" ] || BIRD4="no"
|
[ "${NETWORKING}" = "yes" ] || BIRD4="no"
|
||||||
|
|
||||||
[ -f /etc/bird-6.conf ] || BIRD6="no"
|
[ -f /etc/bird6.conf ] || BIRD6="no"
|
||||||
[ -f /usr/sbin/bird6 ] || BIRD6="no"
|
[ -f /usr/sbin/bird6 ] || BIRD6="no"
|
||||||
[ "${NETWORKING_IPV6}" = "yes" ] || BIRD6="no"
|
[ "${NETWORKING_IPV6}" = "yes" ] || BIRD6="no"
|
||||||
|
|
||||||
@ -76,13 +76,17 @@ case "$1" in
|
|||||||
RETVAL=$?
|
RETVAL=$?
|
||||||
;;
|
;;
|
||||||
reload)
|
reload)
|
||||||
killall -HUP bird
|
killproc bird -HUP
|
||||||
killall -HUP bird6
|
|
||||||
RETVAL=$?
|
RETVAL=$?
|
||||||
|
echo
|
||||||
|
echo -n "Reloading BIRD for IPv6: "
|
||||||
|
killproc bird6 -HUP
|
||||||
|
RETVAL=$?
|
||||||
|
echo
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
echo "Usage: bird.init {start|stop|status|restart|reload}"
|
echo "Usage: bird.init {start|stop|status|restart|reload}"
|
||||||
exit 1
|
exit 1
|
||||||
esac
|
esac
|
||||||
|
|
||||||
exit $REVAL
|
exit $RETVAL
|
||||||
|
Loading…
Reference in New Issue
Block a user