Project

General

Profile

Bug #364 ยป shorewall-restart.conf

/etc/init/shorewall-restart.conf - untested upstart file that should do the trick - Christian Lohmaier, 2014-04-09 21:02

 
# libvirt uses iptables when creating the virtual network devices, basically
# undoing the shorewall changes, making it necessary to restart shorewall

description "restart shorewall after libvirt-bin"

start on started libvirt-bin

pre-start script
# make sure libvirt is done with breaking stuff :-)
sleep 10
end script

exec service shorewall restart
    (1-1/1)