anvil/tools/clear-dns.sh
Stanislav Kudriashev 70a64c2bef Add bashate tox configuration
Change-Id: I0875596c624d9dc79c01228c3236a51436166dfd
2014-12-15 11:30:38 +02:00

10 lines
258 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