autorun: server pid file in /var/tmp, added stop-server script
authorAdriana Draghici <adriana008@gmail.com>
Thu, 6 May 2010 12:40:51 +0000 (12:40 +0000)
committerAdriana Draghici <adriana008@gmail.com>
Thu, 6 May 2010 12:40:51 +0000 (12:40 +0000)
autorun/Util.py
autorun/server/start-server
autorun/server/stop-server [new file with mode: 0755]

index 478918a..279afce 100644 (file)
@@ -1,6 +1,6 @@
 #!/usr/bin/env python
 
-DAEMON_PID_PATH = "/var/run/autorun-server.pid"
+DAEMON_PID_PATH = "/var/tmp/autorun-server.pid"
 SERVER_DIR = "/home/p2p/cs-p2p-next/autorun/server/"
 SERVER_FILE = "Server.py"
 SERVER_TYPE = "python"
index d2253cf..18c6618 100755 (executable)
@@ -6,5 +6,5 @@ if test $# -ne 1; then
 fi
 
 ip_address=$1
-rm /var/run/autorun-server.pid 
-PYTHONPATH=/home/p2p/cs-p2p-next/ppf/log-parser/generic python /home/p2p/cs-p2p-next/autorun/server/Server.py no $ip_address
+rm /var/tmp/autorun-server.pid 
+PYTHONPATH=/home/p2p/cs-p2p-next/ppf/log-parser/generic python /home/p2p/cs-p2p-next/autorun/server/Server.py start $ip_address
diff --git a/autorun/server/stop-server b/autorun/server/stop-server
new file mode 100755 (executable)
index 0000000..9d3c7cd
--- /dev/null
@@ -0,0 +1,3 @@
+#!/bin/bash
+
+PYTHONPATH=/home/p2p/cs-p2p-next/ppf/log-parser/generic python /home/p2p/cs-p2p-next/autorun/server/Server.py stop