To stop and restart a specific service

Posted by: admin at 11 Monday 3rd, 2008

Stop
 # kill -KILL `cat /var/run/ PROCESS .pid` 

Restart
 # kill -HUP `cat /var/run/ PROCESS .pid` 

Check the process ID or the ID specified in the process.
Stop
 # ps -aux | grep named
# kill -KILL  PID 
Restart
 # ps -aux | grep named
# kill -HUP  PID 

Filed under General |

No Comments »