#!/bin/sh cd /home/pc2 if [ -f server.pid ] then kill `cat server.pid` rm server.pid else echo >&2 "Server is not running (no server.pid file)" fi