blob: 024747610b4c77a43a1c5a3c27249a58174b6e84 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
#!/bin/sh
export PATH=$PATH:~/svn/trunk/bin
export PYTHONPATH=~/svn/trunk
action=$1
shift 1
case $action in
start)
name=$1
shift 1
twistd -y $name.tac --pidfile $name.pid --logfile $name.log $*
;;
stop)
name=$1
shift 1
kill `cat $name.pid`
;;
*)
echo "twistd.sh [start|stop] NAME"
;;
esac
|