#!/bin/sh

MDPID=$(pgrep magdock)
if [ -n "$MDPID" ]; then
   kill -9 $MDPID
else
   magdock
fi
