wiki:Internal/Infrastructure/SetupTestbed/resetGS

How to reset gridservices and gridservices2

There 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.

console:/home/xy# netstat -plnt | grep "5012"
tcp        0      0 0.0.0.0:5012            0.0.0.0:*               LISTEN     5189/ruby

and

console:/home/xy# cat /var/run/gridservices/gridservices.pid
5188

So the PID of gridservices is 5189 and 5188.

Use following commands to find the PID of gridservices2

console:/home/xy# netstat -plnt | grep "5022"
tcp        0      0 0.0.0.0:5022            0.0.0.0:*               LISTEN     3368/ruby1.8

or

console:/home/xy# cat /var/run/gridservices2.pid
3368

So the PID of gridservices2 is 3368.

Then run command

kill -9 PID

to stop gridservices and gridservices2. Please replace PID with the actual number you find in the first step.

At last, run following commands to start gridservices and gridservices2

console:/home/xy# /etc/init.d/gridservices start

console:/home/xy# /etc/init.d/gridservices2 start
Last modified 11 years ago Last modified on 11/07/08 19:24:39