shutdown

ncohafmuta-1.4.2/bot/shutdown · 349 B

From the archive ncoh142-dist-full.tar.gz

Download the archive   « Back to the archive contents

#!/bin/sh
# by Cygnus
# ncohafmuta@asteroid-b612.org
#
SIG=$1
BINARY="storybot"

if test -f "./$BINARY.pid"
then
echo "Shutting down storybot.."

if test "$SIG" = ""
then
	kill -TERM `cat $BINARY.pid`
else
	kill -$SIG `cat $BINARY.pid`
fi
echo "storybot is off."
else
	echo "Cant find $BINARY.pid file! Is storybot really running to begin with?"
fi

Site Stats

Snippets: 1791
Codebases: 571