Hi! I am trying to understand whether an 'old' event is generated or not when a lease expires. To experiment this, I used Dnsmasq version 2.72test3-5-gcdb755c I launch dnsmasq like this: sudo /sbin/dnsmasq --conf-file=/var/lib/libvirt/dnsmasq/default6.conf --dhcp-script=/tmp/script.sh
Contents of script: #!/bin/bash echo $@ >> /tmp/out env >> /tmp/out echo "--------------------------------------------" >> /tmp/out Contents of default6.conf: strict-order pid-file=/var/run/libvirt/network/default6.pid except-interface=lo bind-dynamic interface=virbr3 dhcp-range=192.168.150.128,192.168.150.254,2m dhcp-no-override dhcp-range=2001:db8:ca2:2:1::10,2001:db8:ca2:2:1::ff,2m dhcp-leasefile=/var/lib/libvirt/dnsmasq/default6.leases dhcp-lease-max=367 dhcp-hostsfile=/var/lib/libvirt/dnsmasq/default6.hostsfile addn-hosts=/var/lib/libvirt/dnsmasq/default6.addnhosts enable-ra When I run 'service network restart' inside my guest machine, I see that the script is exec'ed with 'old' event. Now, I see that the lease file /var/lib/libvirt/dnsmasq/default6.leases keeps getting updated after every 2 minutes, since the lease expires, but the script /tmp/script.sh doesn't get invoked when the lease gets renewed. Is this expected? I don't see any 'old' event for the renewed lease. Regards, Nehal J Wani _______________________________________________ Dnsmasq-discuss mailing list Dnsmasq-discuss@lists.thekelleys.org.uk http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss