'Stop subprocess for deck.'

def stop_deck(self):

    pid = self.get_deck_pid()
    if pid:
        print 'Terminating    deck    in    pid={pid}'.format(pid=pid)
        os.kill(pid, signal.SIGTERM)
    else:
        print 'deck    was    not    running'
