anvil/tools/clear-dns.sh
2012-04-26 15:48:04 -07:00

11 lines
257 B
Bash
Executable File

#!/bin/bash -x
echo "Clearing your dns"
for pid in `ps -elf | grep -i dnsmasq | grep nova | perl -le 'while (<>) { my $pid = (split /\s+/)[3]; print $pid; }'`
do
echo "Killing leftover nova dnsmasq process with process id $pid"
kill -9 $pid
done