diff options
Diffstat (limited to 'twistd.sh')
-rwxr-xr-x | twistd.sh | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/twistd.sh b/twistd.sh new file mode 100755 index 0000000..0247476 --- /dev/null +++ b/twistd.sh @@ -0,0 +1,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 |