summaryrefslogtreecommitdiff
path: root/twistd.sh
diff options
context:
space:
mode:
authoryvesf <yvesf@d0e8fea9-7529-0410-93fb-d39fd5b9c1dd>2009-12-13 08:50:22 +0000
committeryvesf <yvesf@d0e8fea9-7529-0410-93fb-d39fd5b9c1dd>2009-12-13 08:50:22 +0000
commiteff1b8a7c206aad7d77fa64da510f2dc2495226b (patch)
treea87ae53a4cfece333292b9f5dfd663ac9830829e /twistd.sh
parent99681ec568fb057cabd12c24813ce71e0d7fe271 (diff)
downloadomegle-eff1b8a7c206aad7d77fa64da510f2dc2495226b.tar.gz
omegle-eff1b8a7c206aad7d77fa64da510f2dc2495226b.zip
blablabla
git-svn-id: http://xapek.org/svn/common/omegle@1485 d0e8fea9-7529-0410-93fb-d39fd5b9c1dd
Diffstat (limited to 'twistd.sh')
-rwxr-xr-xtwistd.sh21
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