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

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

    
4
description "restart shorewall after libvirt-bin"
5

    
6
start on started libvirt-bin
7

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

    
13
exec service shorewall restart
    (1-1/1)