#!/bin/sh pidfile=/dev/shm/xwbphotovote.pid if [ ! -f "$pidfile" ]; then echo -e "Stopping swyzxwb_photovote CGI..............[\033[40;31mFAILURE\033[0m]" echo "CGI Maybe Not Running." else read fpid < $pidfile kill $fpid echo -e "Stopping swyzxwb_photovote CGI..............[\033[40;32mOK\033[0m]" rm -f $pidfile fi