#!/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"
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
--- /dev/null
+#!/bin/bash
+
+PYTHONPATH=/home/p2p/cs-p2p-next/ppf/log-parser/generic python /home/p2p/cs-p2p-next/autorun/server/Server.py stop