[Bug 247583] Re: add option to start dnsmasq with a custom configuration file

GoofY goofy at dse.nl
Sat Jan 23 18:46:28 GMT 2010


after some trying I just stuck with killing the dnsmasq process & (re)starting the dhcp server via a little script.
In rc.local I added this script so it will be carried out at the end of everything... Not a real nice solution but it's working...
The sleeps are for some reason necessary 

#!/bin/bash
echo "wait 10sec"
sleep 10
PROCS="dnsmasq"
#
# Get pids 
PIDS=$(awk -F: '{print}' /var/run/libvirt/network/default.pid)
# Now kill em
echo "Killing $PROCS process with PID $PIDS ..."
kill -9 $PIDS
echo "wait 10sec"
sleep 10
echo "dhcp start"
/etc/init.d/dhcp3-server restart

-- 
add option to start dnsmasq with a custom configuration file
https://bugs.launchpad.net/bugs/247583
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to libvirt in ubuntu.



More information about the Ubuntu-server-bugs mailing list