akaros/scripts/ak-scripts/ak-kill-qemu.sh
<<
>>
Prefs
   1#!/usr/bin/env bash
   2#
   3# Copyright (c) 2015 Google Inc.
   4# Kevin Klues <klueska@cs.berkeley.edu>
   5# See LICENSE for details.
   6
   7function short_description() {
   8        echo "Kill any Akaros instances of qemu that are running"
   9}
  10
  11function usage() {
  12        echo "Usage: ${cmd}"
  13}
  14
  15function main() {
  16        local instance=$(ps aux | grep "qemu" | grep akaros-kernel)
  17        kill -9 $(echo ${instance} | cut -d" " -f 2)
  18}
  19
  20