From: Adriana Draghici Date: Thu, 6 May 2010 12:40:51 +0000 (+0000) Subject: autorun: server pid file in /var/tmp, added stop-server script X-Git-Tag: getopt_long~23 X-Git-Url: http://p2p-next.cs.pub.ro/gitweb/?a=commitdiff_plain;h=8f64bfdab71db0b38e4b5a149d56a565d8ea723c;p=cs-p2p-next.git autorun: server pid file in /var/tmp, added stop-server script --- diff --git a/autorun/Util.py b/autorun/Util.py index 478918a..279afce 100644 --- a/autorun/Util.py +++ b/autorun/Util.py @@ -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" diff --git a/autorun/server/start-server b/autorun/server/start-server index d2253cf..18c6618 100755 --- a/autorun/server/start-server +++ b/autorun/server/start-server @@ -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 index 0000000..9d3c7cd --- /dev/null +++ b/autorun/server/stop-server @@ -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