search for: dnsmasq_pid

Displaying 2 results from an estimated 2 matches for "dnsmasq_pid".

2010 Mar 26
3
[PATCH node] Update autobuild and autotest scripts for new build structure
...--log-dhcp + --pid-file=${pidfile}" + if [ -n "$macaddress" ]; then + dns_startup="${dns_startup} --dhcp-host=${macaddress},${NODE_ADDRESS}" + fi + # start dnsmasq + eval $dns_startup + debug "pidfile=$pidfile" + DNSMASQ_PID=$(sudo cat $pidfile) + debug "DNSMASQ_PID=${DNSMASQ_PID}" +} + +# Kills the running instance of dnsmasq. +stop_dnsmasq () { + if [ -n "${DNSMASQ_PID-}" -a "${DNSMASQ_PID-}" != "0" ]; then + local check=$(ps -ef | awk "/${DNSMASQ_PID}/"&...
2009 Jul 21
2
[PATCH node-image] Adds a preserve option for autotest VMs.
...eturn; fi + if [ -n "${nodename}" ]; then check=$(sudo virsh list --all) if [[ "${check}" =~ "${nodename}" ]]; then @@ -670,6 +676,7 @@ setup_for_testing () { NODE_ADDRESS=$NETWORK.100 debug "NODE_ADDRESS=${NODE_ADDRESS}" DNSMASQ_PID=0 + debug "preserve_vm=${preserve_vm}" } # cleans up any loose ends @@ -691,12 +698,14 @@ debugging=false isofile="${PWD}/ovirt-node-image.iso" show_viewer=false vm_prefix="$$" +preserve_vm=false -while getopts di:n:vwh c; do +while getopts di:n:pvwh c; do...