Tuesday, November 18, 2014

Stop and start the process on Unix/Linux



Steps to start/stop hung/running process on Linux
1. Check for abcd process
# ps –ef | grep abcd
Kill the abcd process
# ps -ef | grep abcd | grep -v grep | awk '{print $2}' | xargs kill -9


2. Start abcd application
# /etc/init.d/abcd  start


3. Verify the abcd processes are running
# ps -ef | grep abcd
abcd    6829     1  0 10:36 ?        00:00:00 /usr/adm/abcd/bin/abcdagent -b /usr/adm/abcd5.10 -a
abcd    6830  6829  0 11:28 ?        00:00:00 abcdcollect -I noInstance -B /usr/adm/abcd5.10


4. Verify the server is listening on port 5019
# netstat  -an | grep 5019

No comments:

Post a Comment