Changes between Initial Version and Version 1 of Internal/Infrastructure/SetupTestbed/resetGS


Ignore:
Timestamp:
Nov 7, 2008, 7:24:39 PM (16 years ago)
Author:
korakis
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Internal/Infrastructure/SetupTestbed/resetGS

    v1 v1  
     1= How to reset gridservices and gridservices2 =
     2
     3There are two services related with testbed: gridservices and gridservices2. When the configuration files are changed, we need reset corresponding services to make change effective. First, we need find the PID of these services and stop them. Using following commands to find the PID of gridservices.
     4
     5{{{
     6console:/home/xy# netstat -plnt | grep "5012"
     7tcp        0      0 0.0.0.0:5012            0.0.0.0:*               LISTEN     5189/ruby
     8}}}
     9
     10and
     11
     12{{{
     13console:/home/xy# cat /var/run/gridservices/gridservices.pid
     145188
     15}}}
     16
     17So the PID of gridservices is 5189 and 5188.
     18
     19Use following commands to find the PID of gridservices2
     20
     21{{{
     22console:/home/xy# netstat -plnt | grep "5022"
     23tcp        0      0 0.0.0.0:5022            0.0.0.0:*               LISTEN     3368/ruby1.8
     24}}}
     25
     26or
     27
     28{{{
     29console:/home/xy# cat /var/run/gridservices2.pid
     303368
     31}}}
     32
     33So the PID of gridservices2 is 3368.
     34
     35Then run command
     36
     37{{{
     38kill -9 PID
     39}}}
     40 to stop gridservices and gridservices2. Please replace '''''PID''''' with the actual number you find in the first step.
     41
     42At last, run following commands to start gridservices and gridservices2
     43
     44
     45{{{
     46console:/home/xy# /etc/init.d/gridservices start
     47
     48console:/home/xy# /etc/init.d/gridservices2 start
     49}}}