if [[ -n "$hostnames" ]] ; then
for hostname in $hostnames; do
nodedir=qemu-$hostname
- cat $nodedir/qemu.pid $nodedir/shell.pid 2> /dev/null
+ cat $nodedir/qemu.pid 2> /dev/null
done
else
pgrep qemu
for hostname in $hostnames; do
nodedir=qemu-$hostname
kill_from_file $nodedir/qemu.pid
- kill_from_file $nodedir/shell.pid
done
else
echo Killing all processes mathing qemu
function show_pids () {
pids=$(list_pids "$@")
if [ -n "$pids" ] ; then
- ps $pids
+ ps $pids | grep -v $COMMAND || echo Nothing to show
else
echo Nothing to show
fi