~ubuntu-branches/ubuntu/quantal/gozerbot/quantal

« back to all changes in this revision

Viewing changes to build/scripts-2.5/gozerbot-stop

  • Committer: Bazaar Package Importer
  • Author(s): Jeremy Malcolm
  • Date: 2010-09-29 18:20:02 UTC
  • mfrom: (3.1.7 sid)
  • Revision ID: james.westby@ubuntu.com-20100929182002-gi532gnem1vlu6jy
Tags: 0.9.1.3-5
Added python2.5 build dependency. 

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh
 
2
if [ $1 ]
 
3
then
 
4
  DATADIR=$1
 
5
else
 
6
  DATADIR="$HOME/.gozerbot"
 
7
fi
 
8
if [ -e $DATADIR ]
 
9
then
 
10
  cd $DATADIR
 
11
else
 
12
  echo "no $DATADIR directory found"
 
13
  exit 1
 
14
fi
 
15
if [ -e gozerbot.pid ]
 
16
then kill -s TERM `cat gozerbot.pid`
 
17
else echo "no pid file in $DATADIR directory"
 
18
fi