OpenVZ Forum


Home » General » Support » How to auto restart network service
Re: How to auto restart network service [message #27098 is a reply to message #27095] Sat, 09 February 2008 08:24 Go to previous message
shuaib85 is currently offline  shuaib85
Messages: 59
Registered: September 2007
Member
You might need to write a shell script that keeps checking the status. and once it fails it will restart.

I am not on my machine now so the script might look like this

status= `service network status`

if status == " network is stopped" #check the output
do
service network start
done


run it in infinite loop

I wish this help


WebVZ: OpenVZ Web Management Tool
http://webvz.sourceforge.net
 
Read Message
Read Message
Previous Topic: RRDTool - Create
Next Topic: Are dcachesize values supposed to be 0's?
Goto Forum:
  


Current Time: Sun Sep 15 05:58:44 GMT 2024

Total time taken to generate the page: 0.03436 seconds