#!/bin/sh
# restart <dbase-prefix>
# eg., restart west

./cm $1 >> $1.log 2>&1 &
echo $! > /tmp/cm.$1.pid