mirror of
https://gitlab.com/shorewall/code.git
synced 2025-06-06 17:56:51 +02:00
Add 'reload' command to init scripts
git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@3130 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
parent
97391567cd
commit
e842bc2190
@ -20,6 +20,8 @@ Changes in 3.0.3
|
|||||||
|
|
||||||
10) Implement 'ipdecimal' command.
|
10) Implement 'ipdecimal' command.
|
||||||
|
|
||||||
|
11) Implement 'reload' in the init script.
|
||||||
|
|
||||||
Changes in 3.0.2
|
Changes in 3.0.2
|
||||||
|
|
||||||
1) Typos in the Samples corrected.
|
1) Typos in the Samples corrected.
|
||||||
|
@ -28,7 +28,7 @@ case "$1" in
|
|||||||
stat_done
|
stat_done
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
|
|
||||||
|
|
||||||
stop)
|
stop)
|
||||||
stat_busy "Stopping $DAEMON_NAME"
|
stat_busy "Stopping $DAEMON_NAME"
|
||||||
@ -41,7 +41,7 @@ case "$1" in
|
|||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
|
|
||||||
restart)
|
restart|reload)
|
||||||
stat_busy "Restarting $DAEMON_NAME"
|
stat_busy "Restarting $DAEMON_NAME"
|
||||||
/sbin/shorewall restart &>/dev/null
|
/sbin/shorewall restart &>/dev/null
|
||||||
if [ $? -gt 0 ]; then
|
if [ $? -gt 0 ]; then
|
||||||
@ -52,7 +52,7 @@ case "$1" in
|
|||||||
;;
|
;;
|
||||||
|
|
||||||
*)
|
*)
|
||||||
echo "usage: $0 {start|stop|restart}"
|
echo "usage: $0 {start|stop|restart}"
|
||||||
esac
|
esac
|
||||||
exit 0
|
exit 0
|
||||||
|
|
||||||
|
@ -31,6 +31,7 @@ RCDLINKS="2,S41 3,S41 6,K41"
|
|||||||
#
|
#
|
||||||
# shorewall start Starts the firewall
|
# shorewall start Starts the firewall
|
||||||
# shorewall restart Restarts the firewall
|
# shorewall restart Restarts the firewall
|
||||||
|
# shorewall reload Restarts the firewall
|
||||||
# shorewall stop Stops the firewall
|
# shorewall stop Stops the firewall
|
||||||
# shorewall status Displays firewall status
|
# shorewall status Displays firewall status
|
||||||
#
|
#
|
||||||
@ -51,7 +52,7 @@ RCDLINKS="2,S41 3,S41 6,K41"
|
|||||||
# Give Usage Information #
|
# Give Usage Information #
|
||||||
################################################################################
|
################################################################################
|
||||||
usage() {
|
usage() {
|
||||||
echo "Usage: $0 start|stop|restart|status"
|
echo "Usage: $0 start|stop|reload|restart|status"
|
||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -71,19 +72,17 @@ fi
|
|||||||
command="$1"
|
command="$1"
|
||||||
|
|
||||||
case "$command" in
|
case "$command" in
|
||||||
|
|
||||||
start)
|
start)
|
||||||
|
|
||||||
exec /sbin/shorewall $OPTIONS $@
|
exec /sbin/shorewall $OPTIONS $@
|
||||||
;;
|
;;
|
||||||
|
|
||||||
stop|restart|status)
|
stop|restart|status)
|
||||||
|
|
||||||
exec /sbin/shorewall $@
|
exec /sbin/shorewall $@
|
||||||
;;
|
;;
|
||||||
|
reload)
|
||||||
|
shift
|
||||||
|
exec /sbin/shorewall restart $@
|
||||||
|
;;
|
||||||
*)
|
*)
|
||||||
|
|
||||||
usage
|
usage
|
||||||
;;
|
;;
|
||||||
|
|
||||||
esac
|
esac
|
||||||
|
@ -86,6 +86,9 @@ New Features in 3.0.3
|
|||||||
192.168.1.4
|
192.168.1.4
|
||||||
gateway:/etc/openvpn#
|
gateway:/etc/openvpn#
|
||||||
|
|
||||||
|
7) /etc/init.d/shorewall now supports a 'reload' command which is
|
||||||
|
synonymous with the 'restart' command.
|
||||||
|
|
||||||
Problems Corrected in 3.0.2
|
Problems Corrected in 3.0.2
|
||||||
|
|
||||||
1) A couple of typos in the one-interface sample configuration have
|
1) A couple of typos in the one-interface sample configuration have
|
||||||
|
@ -38,9 +38,6 @@
|
|||||||
# shorewall start Starts the firewall
|
# shorewall start Starts the firewall
|
||||||
# shorewall restart Restarts the firewall
|
# shorewall restart Restarts the firewall
|
||||||
# shorewall stop Stops the firewall
|
# shorewall stop Stops the firewall
|
||||||
# shorewall monitor [ refresh-interval ] Repeatedly Displays firewall status
|
|
||||||
# plus the last 20 "interesting"
|
|
||||||
# packets
|
|
||||||
# shorewall status Displays firewall status
|
# shorewall status Displays firewall status
|
||||||
# shorewall reset Resets iptables packet and
|
# shorewall reset Resets iptables packet and
|
||||||
# byte counts
|
# byte counts
|
||||||
|
Loading…
x
Reference in New Issue
Block a user