#!/bin/sh PATH=/usr/bin/:/usr/local/bin/:/sbin/:$PATH PID=`pidof cjserver` if [ ! -z "${PID}" ] then kill ${PID} sleep 1 echo "service stop ok." else echo "cjserver is not running." fi