~ubuntu-branches/ubuntu/precise/gozerbot/precise

« 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: 2008-06-02 19:26:39 UTC
  • mfrom: (1.1.3 upstream) (3.1.1 lenny)
  • Revision ID: james.westby@ubuntu.com-20080602192639-3rn65nx4q1sgd6sy
Tags: 0.8.1-1
New upstream release.

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