Changed files:
ip6tables.init -> 1.17
ip6tables.upstart -> 1.1
# config: /etc/sysconfig/ip6tables
IPTABLES_CONFIG=/etc/sysconfig/ip6tables
-
if [ ! -f $IPTABLES_CONFIG ]; then
- case "$1" in
+ case "$1" in
start|restart|force-reload)
exit 0
- ;;
+ ;;
esac
fi
rm -f /var/lock/subsys/ip6tables
}
+upstart_controlled --except status panic load save clear
+
case "$1" in
start|load)
start
--- /dev/null
+description "Load /etc/sysconfig/iptables pre-defined rules"
+
+start on pld.network-started
+stop on pld.network-stopped
+
+env IPTABLES_CONFIG=/etc/sysconfig/ip6tables
+
+pre-start script
+ # fail early if config missing
+ test -f $IPTABLES_CONFIG || /sbin/initctl stop
+end script
+
+script
+ exec /etc/rc.d/init.d/iptables6 load
+end script
+
+pre-stop script
+ exec /etc/rc.d/init.d/iptables6 clear
+end script